我正在尝试使用 UIWebView 加载中文网址。如果我用 utf-8 对其进行编码,那么它将变为:
html/libfunctions/%CA%FD%D7%E9%B9%DC%C0%ED(Array).htm -- xchm://03000000-0A00-0400-F25E-D84B09001600/
无法从 UIWebView 加载。
如果我尝试使用默认的 Chinese: html/libfunctions/录脝脢卤脝梅鹿脺脌铆(Timers).htm
,那么
NSString *urlString = @"html/libfunctions/录脝脢卤脝梅鹿脺脌铆(Timers).htm";
NSURL *url = [NSURL URLWithString:urlString];
会给我一个零网址。有人知道如何加载中文网址吗?