Jump to content
php.lv forumi

valodas


gunmetal

Recommended Posts

1. datubāzē pilnīgi viss uz utf8. man personīgi viss ir utf8_general_ci (db, tabulas, rindas)

 

2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

 

3. man skriptā kas savienojas ar db ir nevis mysql_query("SET names utf8");

bet gan mysql_query("SET CHARSET utf8");. nu un attiecīgi visi skripti utf-8 bez BOM

Edited by nikidijs
Link to comment
Share on other sites

Starpcitu ar diezgan ilgi ar šito čakarējos.

Ja viss salikts (tavuprāt) tad moš pārbaudi vai ierakstīts pareizi.

T.i. no manas pieredzes. visu itkā saliku, bet vnk salidis kļūdas biju. tur kur vajadzēja utf-8, tur man bij utf_8, kur skriptos vajadzēja utf8, tur visp biju samaucis utf8_general_ci. nu vnk tāds muļķīgas kļūdas biju pieļāvis.

Velreiz visam gāju cauri un pārbaudiju, kamēr beigās sanāca :)

Varbūt tev ar kas līdzīgs... :/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...