Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • 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
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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]
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic