shurix Posted April 2, 2010 Report Share Posted April 2, 2010 Ar ko atšķiras abi varianti? "SET NAMES 'utf-8'" un "SET NAMES 'utf8'" Quote Link to comment Share on other sites More sharing options...
codez Posted April 2, 2010 Report Share Posted April 2, 2010 atradu atšķirību, ar '-'. balva būs? Quote Link to comment Share on other sites More sharing options...
shurix Posted April 2, 2010 Author Report Share Posted April 2, 2010 (edited) Tev pienākas vēlviens jautājums. Funkcionalitātes ziņā ar ko atšķiras? Lieta tāda ka parasti man lapā ir SET NAMES 'utf-8 variants, bet nupat vajadzēja no phpbb foruma izvilkt informāciju, bet viņam kodējums ir "SET NAMES 'utf8'" un līdz ar to garumzīmju un krievu valodas vieta radas ķeburi. Edited April 2, 2010 by shurix Quote Link to comment Share on other sites More sharing options...
bubu Posted April 2, 2010 Report Share Posted April 2, 2010 Kāpēc gan pašam neizlasīt oficiālu dokumentāciju? Character Sets and Collations That MySQL Supports +----------+-----------------------------+---------------------+ | Charset | Description | Default collation | +----------+-----------------------------+---------------------+ ... | utf8 | UTF-8 Unicode | utf8_general_ci | Un kāpēc galu galā pašam nepamēģināt izpildīt abus kverijus: mysql> set names 'utf-8'; ERROR 1115 (42000): Unknown character set: 'utf-8' mysql> set names 'utf8'; Query OK, 0 rows affected (0.00 sec) Secinājumi? Tu savam set names 'utf-8' kverijam nepārbaudi atgriežāmo kļūdu: mysql_query("set names 'utf-8'") or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Kemito Posted April 2, 2010 Report Share Posted April 2, 2010 ouuu SLINKUMS uzvar atkal :D Tagad shurik tev jādod bubu cepumu lādīte :D Quote Link to comment Share on other sites More sharing options...
goma smile Posted April 2, 2010 Report Share Posted April 2, 2010 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! mysql_query("set names utf8") or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.