Re: converting text input in any encoding to unicode
Re: converting text input in any encoding to unicode
- Subject: Re: converting text input in any encoding to unicode
- From: Marcel Weiher <email@hidden>
- Date: Mon, 28 Apr 2003 15:49:01 +0200
On Sunday, April 27, 2003, at 04:17 Uhr, Ben Dougall wrote:
In order to do that, you'd need to have some idea of what encoding
the text is in. You can try to discern some encodings, but others
will be impossible to differentiate just from looking at the text
itself.
surely most (all?) text files not only contains which characters it
contains but which encoding they're in? i'd have thought that was a
standard requirement for text?
Nope. Plain text files have no information indicating their encoding
whatsoever. You can (a) guess (b) ask (c) restrict yourself to
specific file formats that do indicate (or mandate) a specific encoding.
Have fun ;-)
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.