• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

About ZH Problems.

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web Container:Tomcat 5.5
DB: Mysql -4.22

can not process chinese?

in db appear "??"

How I can resolve this?

such as:

???
[originally posted on jforum.net by huhpreal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the character set of your tables to UTF-8. You can do that by typing the following command in the mysql console:



Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
But 'ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf-8'
is an unkown command;
[originally posted on jforum.net by huhpreal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Message:
mysql> ALTER TABLE tbl_name CONVERT TO CHARACTER SET utf-8
-> ;
ERROR 1064: You have an error in your SQL syntax near 'CONVERT TO CHARACTER SET
utf-8' at line 1
[originally posted on jforum.net by huhpreal]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have resolved the question,
anyway thank you!
[originally posted on jforum.net by huhpreal]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!