FROM : Douglas Davidson
DATE : Tue Apr 19 20:26:54 2005
On Apr 19, 2005, at 10:53 AM, August Trometer wrote:
> However, when I save to a file (using NSString
> writeToFile:atomically), it doesn't save as UTF-8 and when the file
> is read I get all kinds of bogus characters.
>
Get the dataUsingEncoding:NSUTF8StringEncoding and write that to the
file. After the 29th, there will be something else you can do--look
through NSString.h. The point is that you have to specify the
encoding to be able to write it out properly.
Douglas Davidson
DATE : Tue Apr 19 20:26:54 2005
On Apr 19, 2005, at 10:53 AM, August Trometer wrote:
> However, when I save to a file (using NSString
> writeToFile:atomically), it doesn't save as UTF-8 and when the file
> is read I get all kinds of bogus characters.
>
Get the dataUsingEncoding:NSUTF8StringEncoding and write that to the
file. After the 29th, there will be something else you can do--look
through NSString.h. The point is that you have to specify the
encoding to be able to write it out properly.
Douglas Davidson
| Related mails | Author | Date |
|---|---|---|
| August Trometer | Apr 19, 19:53 | |
| Ondra Cada | Apr 19, 20:23 | |
| Jim Hamilton | Apr 19, 20:26 | |
| Douglas Davidson | Apr 19, 20:26 | |
| Shawn Erickson | Apr 19, 20:30 | |
| Tim Gogolin | Apr 19, 20:31 | |
| Shawn Erickson | Apr 19, 20:35 | |
| Sherm Pendley | Apr 19, 20:39 | |
| John Stiles | Apr 19, 20:44 | |
| August Trometer | Apr 19, 20:57 | |
| Ondra Cada | Apr 19, 21:18 |






Cocoa mail archive

