A question about encoding
A question about encoding
- Subject: A question about encoding
- From: "zhengjl" <email@hidden>
- Date: Thu, 18 Mar 2004 17:50:37 +0800
- Organization: SteadyBJ
Hi! cocoa-dev:
I met a question about display messages on NSTextView which saved in a text file.
I use fuction freopen() to make cupstestppd output to a text file. but when i try to get the contents of the file and display on NSTextView (as below):
[resultField setString:[NSString stringWithContentsOfFile: filePath]];
I found that it can not get string if the file has encoding characters. (if file without encoding characters, the sentence works well)
Program entironment:
Mac OS X 10.3 (Chinese)
XCode and Interface Builder
Cocoa and cups source code
Best Regard !
[demime 0.98b removed an attachment of type application/octet-stream which had a name of Sing.bmp]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.