![]() | |
| |||||||
| Home | Register | Blogs | FAQ | Members List | Calendar | Downloads | Arcade | Mark Forums Read |
| Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 |
| Settler | How write in armenian in MySQL? I have a php script which writes and reads form mysql tables. This is how I create connection with mysql: $conn = mysql_connect("localhost", 'localhost_001','123456') or die("bla-bla-bla". mysql_error()); mysql_select_db("db_name"); mysql_query("SET NAMES utf8",$connn); mysql_query("SET CHARACTER SET utf8",$conn);. My tables have the following properties charset: utf8 Collation:utf8_general_ci When I write in english or in russian everything works perfectly. But when I write a data in armenian it turns into ???????????????. Does someone have any ideas?
__________________ Кто никогда не совершал безрассудств, не так мудр, как ему кажется. |
| | |
| | #2 |
| Дикообраз-безобраз | How do you check the result after query? If you generate html check out if a proper encoding is chosen too.
__________________ Deutschland, Deutschland über alles Über alles in der Welt, Wenn es stets zu Schutz und Trutze Brüderlich zusammenhält, Von der Maas bis an die Memel, Von der Etsch bis an den Belt. |
| | |
| | #3 |
| Settler | I haven't forgotten <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">.. ![]()
__________________ Кто никогда не совершал безрассудств, не так мудр, как ему кажется. |
| | |
| | #4 |
| Дикообраз-безобраз |
__________________ Deutschland, Deutschland über alles Über alles in der Welt, Wenn es stets zu Schutz und Trutze Brüderlich zusammenhält, Von der Maas bis an die Memel, Von der Etsch bis an den Belt. |
| | |
| | #5 |
| Settler | The fact I am confused about is that everything works perfectly with cyrillic symbols. According to the article there is no difference between armenian and russian because both of them use 2 bytes. It seems as if it is something wrong with just supporting of armenian .
__________________ Кто никогда не совершал безрассудств, не так мудр, как ему кажется. |
| | |
| | #6 |
| Settler | I have found an "empiric solution" !!!After executing this command all problems have been solved. ALTER DATABASE `hhhh` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci
__________________ Кто никогда не совершал безрассудств, не так мудр, как ему кажется. |
| | |
| | #7 |
| Шестой Лесничий | actually, I think that you had the 1251 collation set by default, that's why you didn't have any problems with russian. However, the unicode works perfect with any collation, at least for MSSQL2000, 2005, with .net and java front-end (that's what I have checked) right now I've got .net 2.0 + mssqp 2005 with 1251 collation, armenian not a problem at all.... |
| | |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Journey to Artsakh by Abba Seraphim and Father Simon Smyth | HOB | History and Politics | 2 | Oct 18, 2007 02:21 |
| Azerbaijan: Famous Medieval Cemetery Vanishes | JUJU | News | 2 | Apr 20, 2006 07:11 |
| Armenian International House is looking for country PR manager. | Lite | Jobs | 0 | Nov 20, 2005 10:18 |
| There's no genocide in war but losers and winners | OTTOMAN | History and Politics | 10 | May 7, 2005 15:07 |
| Recognition | neMarina | News | 1 | Apr 18, 2005 09:20 |