Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Strange problem with characters
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
jackal_on_w...@yahoo.com  
View profile   Translate to Translated (View Original)
 More options 26 Feb 2007, 06:58
Newsgroups: comp.databases.mysql
From: jackal_on_w...@yahoo.com
Date: 25 Feb 2007 22:58:43 -0800
Local: Mon 26 Feb 2007 06:58
Subject: Strange problem with characters
Hi Faculties,
   I have inserted some spanish data into one table. The database
charset is utf8 and collation is utf8_general_ci. Now when I see the
rows of the table in MySQL console, the rows are fetched properly. But
whenever I try to see the rows from this table from any application
like Java or PHP, I always get garbage data for the Spanish
characters.  Same is the case with tools like SQLYog and MySQL Query
Browser.

  Am I missing something from the database side that can fix this
problem?

Thanks in advance
Jackal Hunt


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Willem Bogaerts  
View profile   Translate to Translated (View Original)
 More options 26 Feb 2007, 07:50
Newsgroups: comp.databases.mysql
From: Willem Bogaerts <w.bogae...@kratz.maardanzonderditstuk.nl>
Date: Mon, 26 Feb 2007 08:50:33 +0100
Local: Mon 26 Feb 2007 07:50
Subject: Re: Strange problem with characters

>    I have inserted some spanish data into one table. The database
> charset is utf8 and collation is utf8_general_ci. Now when I see the
> rows of the table in MySQL console, the rows are fetched properly. But
> whenever I try to see the rows from this table from any application
> like Java or PHP, I always get garbage data for the Spanish
> characters.  Same is the case with tools like SQLYog and MySQL Query
> Browser.

In the (internet) browser, check view->encoding. If it is not utf-8,
then the characters are probaly misinterpreted. In PHP.INI, you can set
the character set to utf-8.
I was not able to get SQLYog or even phpMyAdmin to show the right
characters, but I did get my database and webpages to write and
understand utf-8.

>   Am I missing something from the database side that can fix this
> problem?

Look at the outcome of:

SHOW VARIABLES LIKE '%char%'

There are lot of encoding settings, alas.

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google