You are here: Re: Inserting Japanese characters into UTF-8 MySQL database via php « All PHP « IT news, forums, messages
Re: Inserting Japanese characters into UTF-8 MySQL database via php

Posted by Juliette on 10/11/80 11:54

marcin@netsign.pl wrote:
> I have problems with inserting Japanese chars into MySQL database. This
> operation results in two completetely different strings that I can see
> via phpMyAdmin:
> $word: SELECT word FROM table;
> INSERT $word INTO table;
>
> Both commands are executed direclty via PHP, phpMyAdmin shows the
> original word (inserted into table via phpMyAdmin) correctly and a
> wrong copy (f.e. %&c/#....) of word inserted via PHP.
>
> I preasume that the problem is PHP default coding, I tried to convert
> encoding to UTF-8 by mb_convert_encoding($key, "UTF-8", "auto"); with
> no success.
>


Have a read through this tutorial and see if it helps:
http://adviesenzo.nl/examples/php_mysql_charset_fix/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация