• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JForum2.1.6 chinese charactset problem

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 5.0.28,mysql 5.0.18 on RHEL AS3 ,The topci title no problem,but can not show the topic correct. there are "??".The database charact set is UTF-8.

and I changed the WEB-INF/config/SystemGloblals set the encoding parameter to GB2312 but it not work. The problem is still.

How can I fix this problem.
[originally posted on jforum.net by northwindrocker]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and preview the topic is correct.but it's wrong after it submit.
[originally posted on jforum.net by northwindrocker]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try chanding the database encoding as well. (web-inf/config/database/mysql/mysql.properties)

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Rafael ,there are two encoding in WEB-INF/config/database/mysql/mysql.properties

are 'dbencoding' and 'mysql.encoding' which one should I change,and should change it to what value?

THX
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's try first with UTF-8:

Change dbencoding to UTF-8, as well the "encoding" key in SystemGlobals.properties (take a look at jforum-custom.conf as well).

Make sure "dbunicode" is "true".

Test. If it doesn't work, try setting all encodings to GB2312, and a mix of "dbunicode" to "true" or "false".

Sometimes it can be hard to find the right configuration, because the OS encoding may interfer on the process.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic