Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 NSString *str = @"T%B3%C3%83";
其中 %C3 代表带有变音符号的 A(我认为),%B3 是一个 m,%83 是一个上标 3 ...
将这些百分比转换为实际字符的最佳方法是什么。
谢谢。
-stringByReplacingPercentEscapesUsingEncoding在 NSString 中使用方法。 PS但是我不知道你必须使用什么编码来获得你在问题中提到的结果(你确定它们是正确的吗?)
-stringByReplacingPercentEscapesUsingEncoding