Hello H2 developers

I created a database in a program which used the default charset of the 
machine I'm on (UTF-8). I then tried to open the db in a program which 
intentionally uses a very queer default charset (UTF-16BE). The reason for 
that is, we want to make sure every charset sensitive function uses an 
explicit charset. I got the error FILE_VERSION_ERROR_1. Unfortunately 
there's no way to fix that as a user of the h2-db.

The error is in *org.h2.store.FileStore:*

   - In method "init" on line 173 it should use an explicit charset and not 
   rely on the default charset:
   byte[] magic = HEADER.getBytes(Charset.forName("UTF-8"));

This fix is also important in a case where you move db files from one OS to 
another.

Best regards from Switzerland
Juerg

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to