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

Поиск
Список
Период
Сортировка
От Marc Herbert
Тема Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Дата
Msg-id khjzmj6ih92.fsf@meije.emic.fr
обсуждение исходный текст
Ответ на Re: psqlODBC-Driver Test / text fields  ("Dave Page" <dpage@vale-housing.co.uk>)
Список pgsql-odbc
Johann Zuschlag <zuschlag2@online.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.



В списке pgsql-odbc по дате отправления:

Предыдущее
От: Johann Zuschlag
Дата:
Сообщение: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Следующее
От: Marc Herbert
Дата:
Сообщение: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text