Encodigns problem
Encodigns problem
- Subject: Encodigns problem
- From: TACKEL <email@hidden>
- Date: Wed, 10 Sep 2003 14:45:30 +0100
Hi,
Im trying to write some text (with Spanish accentuated words) to a file but Im having
some encoding problems. I think Ive tried all the possible encodings but the string
wasnt write properly. More or less this is what Im doing:
---------------------------------------------------------------
NSFileHandle *filehandle;
[filemng createFileAtPath: [@"~/Desktop/file.txt" stringByExpandingTildeInPath]
contents: nil attributes: nil ];
filehandle = [NSFileHandle fileHandleForWritingAtPath : [@"~/Desktop/file.txt"
stringByExpandingTildeInPath]];
[filehandle writeData: [@"el camisn elictrico"
dataUsingEncoding:NSUTF8StringEncoding]];
----------------------------------------------------------------
And that's the line I find in the file:
el cami??n el?)ctrico
Where is my error?
Thanks,
Tackel.
_______________________________________________
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.