Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text - Mailing list pgsql-odbc

From Marc Herbert
Subject Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Date
Msg-id khjodzmig36.fsf@meije.emic.fr
Whole thread Raw
In response to Re: psqlODBC-Driver Test / text fields  ("Dave Page" <dpage@vale-housing.co.uk>)
Responses Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text  (Bart Samwel <bart@samwel.tk>)
List pgsql-odbc
Johann Zuschlag <zuschlag2@online.de> writes:

> I've read about the problems with the NULL bytes on Unix machines.

This problem is not related to Unix at all but to the programming
language used. Most standard C functions use the zero byte convention
as a string terminator, so it becomes a forbidden character in C.

On the other hand String objects in C++ and Java use a separate length
field, and having NULLs inside a string is a no brainer there.

The ODBC API has been designed for C and Cobol. Cobol does not forbid
zero as a character either. When browsing the ODBC spec you'll notice
it carefully caters for the two ways.


Guess which programming language is used PostgreSQL.


I suspect unicode does not care at all about this. After all unicode
is just about characters not about strings.



pgsql-odbc by date:

Previous
From: Marc Herbert
Date:
Subject: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text
Next
From: Bart Samwel
Date:
Subject: Re: Unicode is not UTF-8. was :psqlODBC-Driver Test / text