Re: Commit: change getNative8BitEncoding to return UTF-8 on linux

From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Sat Oct 19 2002 - 00:03:50 EDT

  • Next message: Christian Biesinger: "Re: Commit: change getNative8BitEncoding to return UTF-8 on linux"

     --- Christian Biesinger <cbiesinger@web.de> wrote:
    > Changed
    > xap_UnixEncodingManager::getNative8BitEncoding to
    > return UTF-8. this makes translated
    > strings with special characters (like umlauts) work
    > again.

    This is absolutely the *wrong* solution.
    Native8BitEncoding is *specifically* *always* a non-
    Unicode encoding.
    The correct solution is to get the offending bit of
    code which is using the value in Native8BitEncoding to
    use the correct value which is NativeEncoding. This
    should be UTF-8 under a UTF-8 locale.
    This is why there are several "Native" encodings.

    Please ask for more help if this is unclear. Getting
    encoding logic wrong by guessing rather than learning
    will cause all kinds of nightmares.

    Andrew Dunbar.

    =====
    http://linguaphile.sourceforge.net/cgi-bin/translator.pl http://www.abisource.com

    __________________________________________________
    Do You Yahoo!?
    Everything you'll ever need on one web page
    from News and Sport to Email and Music Charts
    http://uk.my.yahoo.com



    This archive was generated by hypermail 2.1.4 : Sat Oct 19 2002 - 00:11:02 EDT