Quick note:
UInt32 big5 =
CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingBig5_HKSCS_1999);
NSString *str = @"這不是中文";
NSString *big5EncStr = [str stringByAddingPercentEscapesUsingEncoding:big5];
然後就可以拿來丟只認得Big5的老古董Web Server
照例補個幹...
Big5過不過時見人見智,但那有人Request 吃Big5 Response 吐 UTF-8的啦 = = !
相關連結:
NSStringEncoding
.
0 意見:
張貼留言