Skip to content Skip to sidebar Skip to footer

Should A Dart Web Server Use Utf-16 Encoding For Everything?

I'm running a Dart web server, with Dart on the client side as well. The web data is saved in files and in a Postgres database. Since dartlang is UTF-16 (because Webkit strings are

Solution 1:

PostgreSQL does not support UTF-16 encoding, which limits what you are talking about doing. One of the big issues you are likely to run into elsewhere is that UTF-16 allows embedded nulls, which messes up C string manipulations, while UTF-8 is far more C friendly. For this reason, to be honest, I would try to standardize on UTF-8 to the extent possible.


Post a Comment for "Should A Dart Web Server Use Utf-16 Encoding For Everything?"