Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving UTF-8 Chinese characters produced error - Invalid token. Malformed String. [CORE2695] #3095

Closed
firebird-automations opened this issue Oct 19, 2009 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Roberto Smith (robertosmith)

Scenario:
1. Using IBExpert, create a table with a single column, Varchar (10), Charset
UTF-8, Collate UTF-8.

2. At the IBExpert, Open that Table. At the data tab, try input some UTF-8
Chinese characters based on the character script download from
http://www.unicode.org/charts/PDF/U4E00.pdf

3. To input the UTF-8 Chinese characters, e.g. Type 4E00 Alt-X, you should see
this character 一 (Type 4E00, follow by ALT X)

4. Typing the UTF-8 Chinese characters is not a problem, but when
saving into the database, most of the characters produced the following Error
Message:

Invalid token. Malformed String.

5. The example list of characters not able to save:
4E01 : 丁
4E02: 丂
4E03: 七 etc.

I can't key in the UTF-8 charaters using ISQL, FlameRobin, Upscene Database Workbench. So the
best tool to simulate is IBExpert operating in Windows XP. In Vista, the Chinese
characters do not show at all in all tools, including IBExpert.

Thanks.
roberto

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Try these it is ok for me :

C:\Fb21\bin>isql 192.168.1.6:/Users/philippe/tempo/firebird_db/test.fdb -user SYSDBA -password masterkey
Database: 192.168.1.6:/Users/philippe/tempo/firebird_db/test.fdb, User: SYSDBA
SQL> SET NAMES UTF8;
SQL> input 'test.sql';
SQL> commit;
SQL> select * from tutf8;

F1

õ©é

SQL> exit;

C:\Fb21\bin>isql 192.168.1.6:/Users/philippe/tempo/firebird_db/test.fdb -user SYSDBA -password masterkey
Database: 192.168.1.6:/Users/philippe/tempo/firebird_db/test.fdb, User: SYSDBA
SQL> SET NAMES UTF8;
SQL> OUTPUT 'bla.txt';
SQL> select * from tutf8;
SQL> exit;

test.sql is a file encoding UTF8 with :
INSERT INTO TUTF8 VALUES ('丂');

and the result bla.txt give a text file encoding utf8 with :
F1

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

not a Firebird bug

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Fix Version: 2.1.3 [ 10302 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants