Author Topic: utf-8 characters become ????????????  (Read 6848 times)

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
utf-8 characters become ????????????
« on: April 08, 2008, 02:19:19 PM »
Hello all!
How could we make the greek utf-8 characters, being entered by a customer, no to get converted to question marks ????????

We use mysql with UTF-8 and ci_general collation.

Please help!!!!!!! 

pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #1 on: April 08, 2008, 02:49:49 PM »
Hi,

Can you be a bit more specific about where this is happening ? Can you reproduce it on our online demo ?

Thx,

Pete

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #2 on: April 08, 2008, 03:04:49 PM »
Thanks for your so quick response!!!
Here is the same situation on your demo. The question marks were once Greek letters before
saving to the database.....

If you could think of a solution there we would be very grateful!

Greetings
Costis (or better Κωστής)

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #3 on: April 08, 2008, 03:48:08 PM »
You email arrived! Looks like this......
Is 7bit OK?

pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #4 on: April 08, 2008, 04:09:33 PM »
I've just tried it with a database set up for UTF-8 and it works. See attached image:

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #5 on: April 08, 2008, 04:15:02 PM »
Wow! The fact is that it used to work for me too, but stopped suddenly and since then i keep getting
question marks. We use utf8 everywhere....
Did you use phpMyAdmin for your database settings?


costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #6 on: April 08, 2008, 04:18:30 PM »
The konakart demo, keeps giving me question marks though.....  ??? ???

pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #7 on: April 08, 2008, 04:26:20 PM »
Yes, the database for the online demo isn't setup correctly to store Greek characters.

pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #8 on: April 08, 2008, 04:32:04 PM »
My database seems to be setup in a similar fashion. If it used to work and suddenly stopped, you should try to figure out what you changed .

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #9 on: April 08, 2008, 05:01:34 PM »
Thanx for all the support! One question more:

Do you have the URIEncoding="UTF-8" entry like here in your server.xml ?

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
   <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               URIEncoding="UTF-8"
   />

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #10 on: April 08, 2008, 05:44:01 PM »
 URIEncoding="UTF-8" does not do the trick either.....  :( :( :(

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #11 on: April 08, 2008, 06:00:44 PM »
but then again on my system Verrueckt nach Mary comes with a Question Mark,
while on konakart-demo site it is OK.........

Help needed!

pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #12 on: April 09, 2008, 12:29:11 AM »
My system works after a standard KonaKart install using our installer. From what you said, it looks like your system used to work when you first installed it. My advice is to go through a fresh install process and try again. Are you running on Windows or Linux ?

costis

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: utf-8 characters become ????????????
« Reply #13 on: April 09, 2008, 03:28:12 AM »
Hi Pete!
We do use both SUSE and Win-XP-SP2. SUSE will be our final target.
We face this problem on both OS's. We have only one correct working shop
right now, and this is on a Win system.

When we write greek into the customers table, with phpMyAdmin, and load the customer's data
to either konakartadmin or konakart, the Greek utf8 letters appear on screen, but as soon as we
edit the data and save they turn to question marks..... King Midas must have had a similar feeling.... :'(


pete

  • Administrator
  • Sr. Member
  • *****
  • Posts: 226
    • View Profile
    • KonaKart Website
Re: utf-8 characters become ????????????
« Reply #14 on: April 09, 2008, 04:12:19 AM »
Since you have one working shop maybe you can spot what is different between the working one and the one that doesn't work ? There should be some clues there.