I found PuTTY has codes to convert common western encoding to Unicode
and spit out the incomplete one.
It is very convenient for terminal emulator because like StepChat,
it may not  always receive a complete glyph.
It is under MIT license, so I probably will use it.

Quentin, could you do me a favor ?
I need to know how OSX handles terminal encoding.
I assume you use French version, which is iso8859-1 encoding ?
I need to know what's the output of 'locale' command.
And what is your default C string encoding [NSString defaultCStringEncoding].

Thanx.

Yen-Ju

On 6/4/07, Quentin Mathé <[EMAIL PROTECTED]> wrote:
> Le 4 juin 07 à 01:38, Yen-Ju Chen a écrit :
>
> > Does anyone know a good, open-source text encoding detection library ?
> > I found this one written in Python:
> > http://chardet.feedparser.org/
> > It is under LGPL, but it would be nice to have one under BSD/MIT.
> > It may be useful for terminal emulator and text editor.
>
> I don't know really any text encoding detection libraries but not
> sure it helps but here is what I have found:
> - <http://lxr.mozilla.org/seamonkey/source/extensions/
> universalchardet/src/> linked on <http://www.mozilla.org/projects/
> intl/UniversalCharsetDetection.html>
> - <http://utrac.sourceforge.net/> released as GPL but also available
> as a tool
> - <http://websvn.kde.org/trunk/KDE/kdelibs/kdecore/localization/>
> - <http://trific.ath.cx/software/enca/> released as GPL but also
> available as a tool
>
> That's all I have been able to find, may be some text encoding
> detection code is available as part of WebKit.
>
> Quentin.
>
>
> _______________________________________________
> Etoile-discuss mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-discuss
>

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à