Bas, Apologies for the delayed response! Our setup is a complex set of components with a java component inserting records and tcl based RESTful service fetching the records back. I have isolated this issue to a tcl script and am sending this out to replicate the issue 1. My MySQL version is 5.1.22 2. create a table CREATE TABLE multibytetest (value VARCHAR(255) CHARACTER SET utf8) 3. Copy the adp in your aolserver installation and run it. You will need to make a modification to change the database name The adp present you with a HTML form to let you set a string which is inserted into the multibytetest table using SQL INSERT INTO multibytetest (value) VALUES (_utf8'$value') The idea to quote it in _utf8 is from this blog from dossy I am using the MySQL query browser to see if the character inserted into db is correct or not. The chinese characters gets inserted fine. The adp also retrieves the same value back and renders it on the HTML page along with the tcl string which was inserted. The Content-Type is set to "text/html; charset=utf-8" as well as adp mimetype. Yet the record fetched back does not get rendered on browser correctly. Here is a screenshot of a testrun ![]() Any ideas why I am not able to get the multibyte record correctly? Couple of points :- 1. The records gets rendered fine if the column type is BLOB instead of VARCHAR. But I dont think we should need to convert the datatype of table in order to store multibyte characters .Java is able to insert and fetch the records correctly 2. If the INSERT sql is modifed to simple INSERT INTO multibytetest (value) VALUES ('$value') both 'Inserted value' and 'Value retrieved from database' is rendered correctly but the record inserted in mysql is not correct. This is verified by viewing the record in mysql query browser as well as fetching it from a java program Hoping to get any pointers here-- -- Rajesh Nair Bas Scheffers wrote: Some questions to help us, and maybe give you some hints as to what might be wrong.
|
- [AOLSERVER] ns_db and multibyte support Rajesh nair
- Re: [AOLSERVER] ns_db and multibyte support Bas Scheffers
- Re: [AOLSERVER] ns_db and multibyte support Tom Jackson
- Re: [AOLSERVER] ns_db and multibyte suppo... Bas Scheffers
- Re: [AOLSERVER] ns_db and multibyte s... Cynthia Kiser
- Re: [AOLSERVER] ns_db and multib... Michael A. Cleverly
- Re: [AOLSERVER] ns_db and multib... Bas Scheffers
- Re: [AOLSERVER] ns_db and multib... Jade Rubick
- Re: [AOLSERVER] ns_db and multibyte support Rajesh nair
- Re: [AOLSERVER] ns_db and multibyte suppo... Rajesh nair
- Re: [AOLSERVER] ns_db and multibyte s... Darren Ferguson
- Re: [AOLSERVER] ns_db and multib... Rajesh nair
- Re: [AOLSERVER] ns_db and multib... Rajesh nair