Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text

From: Marc Herbert <Marc(dot)Herbert(at)continuent(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Date: 2006-03-31 18:47:05
Message-ID: khjzmj6ih92.fsf@meije.emic.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Johann Zuschlag <zuschlag2(at)online(dot)de> writes:

> 'A' = U+0041 (does windows use big-endian?)

Argh, please do not make it even more complex than it needs to be!

Endianness is by chance an _independent_ issue. You just care about it
at the low-low level when dealing with files or network sockets, but
then it's over and you never want to hear about it anymore at a higher
level.

So U+0041 is an integer whose value is:

zero thousand zero hundred forty one

and this is always true, whatever is the byte ordering used by the
processor. You don't need to know more than this, even when converting
to UTF-8 or anything else.

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Marc Herbert 2006-03-31 19:02:38 Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Previous Message Johann Zuschlag 2006-03-31 16:58:57 Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text