Hi, maybe it would be a good idea to adopt the Mysql Wiki:
https://cwiki.apache.org/confluence/display/OFBIZ/How+to+migrate+OFBiz+from+Derby+to+MySQL+database entity.properties: change character-set="latin1" to character-set="utf8" change collate="latin1_general_cs" to "utf8_general_ci" change jdbc-uri="jdbc:mysql://127.0.0.1/ofbiz?autoReconnect=true" to jdbc-uri="jdbc:mysql://127.0.0.1/ofbiz?autoReconnect=true ;characterEncoding=UTF-8" mysql.conf [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] collation-server = utf8_unicode_ci init-connect='SET NAMES utf8' character-set-server = utf8 Mysql Version: > 5.6.4 (supports datetime milliseconds) Best regards, Ingo -----Ursprüngliche Nachricht----- Von: Jacques Le Roux [mailto:jacques.le.r...@les7arts.com] Gesendet: Montag, 3. April 2017 07:08 An: user@ofbiz.apache.org Betreff: Re: Special char Hi Mike, Inline Le 02/04/2017 à 22:44, Mike a écrit : > Great.... Incidentally, I have no idea why the default for mysql, > *STILL*, for ofbiz, is not UTF8. The MySQL specifications in entityengine.xml are old. They need to be updated. Please create a Jira for that, follow https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices > Any modern database should, by default, be UTF8 compliant. The > reason why the ofbiz multi-language demo works be because the backend > is PostgreSQL. If the same demo data was hosted by mysql, the demo > wouldn't even work with the defaults in entity.properties. > > Committers: Please justify this. The demo is not backed by PostgreSQL but Apache Derby, same for OFBiz when installed locally. > Converting to postgresq? > > https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_Po > stgreSQL The OFBiz projects has not special recommendations about RDMS to use. Because it depends on your needs, etc. Apache Derby is not recommended for production though. I personally, and a number of other committers, recommend to use PostgreSQL, but once correctly configured MySQL and its avatars are also good choices. Jacques > > On Sun, Apr 2, 2017 at 10:29 AM, Ingo Wolfmayr > <ingo.wolfm...@wolfix.at> > wrote: > >> Thanks, that fixed it. >> >> I am working on moving to postgresql. Did you move an existing >> ofbiz-mysql database to postgresql? If yes, what was your way of doing it if >> I may ask? >> >> -----Ursprüngliche Nachricht----- >> Von: Mike [mailto:mz4whee...@gmail.com] >> Gesendet: Samstag, 1. April 2017 01:10 >> An: user <user@ofbiz.apache.org> >> Betreff: Re: Special char >> >> I had this exact same problem back when I was using mysql. This is >> how I finally got mysql to properly render UTF8 >> >> entity.properties >> character-set="utf8" >> collate="utf8_general_ci"> >> jdbc-uri="jdbc:mysql:// >> 10.2.10.101/ofbiz?autoReconnect=true;characterEncoding=UTF-8" >> >> Also: >> my.cnf >> character-set-server=utf8 >> default-collation=utf8_unicode_ci >> >> Then (I believe) you have to re-create the database to pick up the >> UTF8 stuff and reload the UTF8 data. There may be a way to convert >> an existing DB on the fly to UTF8... However: >> >> The data in the DB is not UTF8 so you are (most likely) screwed. >> THIS is exactly why I ditched mysql and went with postgresql, where >> everything is >> UTF8 by default. >> >> On Fri, Mar 31, 2017 at 2:39 AM, Ingo Wolfmayr >> <ingo.wolfm...@wolfix.at> >> wrote: >> >>> Hi everybody, >>> >>> I have a question regarding special chars: >>> >>> Environment: Ofbiz trunk, Mysql 5.6 >>> Entity Engine: collate="utf8_unicode_ci", jdbc-uri="jdbc:mysql:// >>> localhost/ofbiz_test?autoReconnect=true&characterEncoding=UTF-8" >>> >>> I have the following strings: >>> 1) Käse >>> 2) Akrapovič >>> >>> The first one is working. The second becomes Akrapovi? >>> >>> Both strings work in the online demo. Does anyone has an idea what I >>> may do wrong? >>> >>> Best regards, >>> Ingo >>>