[JDEV] Gabber & UTF-8 & i18n

Dave Smith dave at jabber.org
Sat Jul 1 10:02:22 CDT 2000


Hey people..

I think I've finally reached a state of harmony on the issues we've been facing w/ UTF-8 and/or
i18n. 

The biggest problem we've had thus far is the fact that gabber has no concept of UTF-8 and
simply renders outgoing/incoming messages in whatever the local mult-byte encoding happens to be.
This approach has not been popular with some server people, since sending improperly encoded
chars can crash/bog the server as it tries to do UTF-8 conversion w/ something that's not UTF-8.

To deal with these issues, I'm going to take the following stance in my code and we'll just
have to see how it all works out.

1.) All UTF-8 encoding/decoding will take place in gabber (versus doing it in jabberoo)

2.) Jabberoo will assume that all data passed to it is already UTF-8 encoded and will do
    no de/encoding on it's own. This is due to the fact that translating btw encodings
    requires another library and I want to keep jabberoo as light as possible when it
    comes to dependencies.
    
3.) Gabber will assume (until I get more information on determining local charset encoding)
    that all UTF-8 text should be rendered in ISO-8859-1 (Which accomodates the majority of 
    US/European characters)

4.) Gabber will use the libunicode (unless I find something better) from the GNOME project
    to handle encoding translation.

All in all, these are fairly straightforward rules, but I wanted to lay them out and make
sure that the general approach is sound. I welcome any suggestions and/or constructive criticism.

Also, it would be very helpful if the people who want to send extended characters  (umlauts, pound signs, etc)
could send me whatever information they can find on their system w/ regard to the locale they
are currently using. This is typically found in one of the following env. variables: LC_ALL, LANG

Thanks for your time. I hope to have a nice solid gabber 0.7 within the next few weeks (end of July probably)
with a host of new features/tweaks. :)

D.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20000701/428c45f5/attachment-0002.pgp>


More information about the JDev mailing list