-=HELLBENDER=- Posted September 7, 2008 Report Share Posted September 7, 2008 Sveiki! Esmu izmeklējis gan šeit, gan google par to, kā uzlikt e107 utf8 charsetu! Visu esu izspildījis English.php: setlocale(LC_ALL, 'UTF-8');define("CORE_LC", 'UTF-8'); define("CORE_LC2", 'lv'); // define("TEXTDIRECTION","rtl"); define("CHARSET", "utf-8"); // for a true multi-language site. :) DB: latin1_swedish_ci (lai gan šaubos ka DB tur vsp vajadzīgs, jo mainu language failos (lan_*.php)) Kas varētu būt pa vainu? Garumzīmes aizvietojas ar kkadiem ķeburiem! Link to comment Share on other sites More sharing options...
Pentiums Posted September 7, 2008 Report Share Posted September 7, 2008 (edited) mysql_query('SET NAMES UTF8'); Edited September 7, 2008 by Pentiums Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 7, 2008 Author Report Share Posted September 7, 2008 Kāds tur sakars ar mysql? Man nau problēmas ar valodu datubāzē, bet gan tekstos kuri atrodas uz php failiem! Link to comment Share on other sites More sharing options...
Pentiums Posted September 7, 2008 Report Share Posted September 7, 2008 ko tad uzreiz nesaki ka problēma failos? glabā failus UTF8 encodingā (ieteicams bez BOM simboliem) ja uz notepad tad Save As / norādi vajadzīgo encodingu, uz citiem php koda editoriem, piemeram Notepad++ var norādīt bez BOM simboliem, tad nebūs problēmas ar headers already send kas var velak paradities Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 7, 2008 Author Report Share Posted September 7, 2008 Failus jau glabāju utf-8 encodingā... Nēsu jau tik stulbs :D Vaina ir e107! Jo es pamēģināju uzstaisīt parastu html failu, tur garimzīmes strādāja. Link to comment Share on other sites More sharing options...
Pentiums Posted September 7, 2008 Report Share Posted September 7, 2008 uzliki visiem failiem utf8, ne tikai valodas failiem? un starp citu, apskaties lapas saurci, kāds tur charsets norādīts <meta http-equiv="content-type" content="text/html; charset=utf-8" /> Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 7, 2008 Author Report Share Posted September 7, 2008 e107 admina panelī rāda ka charsets ir utf8 english.php failā charsets ir utf8 source rāda <meta http-equiv='content-type' content='text/html; charset=utf-8' /> tātad, utf8! Kur pie velna ir kļūda? http://vortexclan.net/download.php << Šeit var aplūkot... Pirms Not mdownloads yet sarakstīju dažus latviešu burtus Link to comment Share on other sites More sharing options...
Pentiums Posted September 7, 2008 Report Share Posted September 7, 2008 ja es visiem failiem salicis utf-8 encodingu (es domaaju pilnigi visiem) tad nezinu kur pie velna kļūda ;) Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 7, 2008 Author Report Share Posted September 7, 2008 Piebildīšu ka hostēju uz byet hostinga, bet šaubos ka tur ir vaina, jo itkā tas html iet! http://vortexclan.net/utf8.html Link to comment Share on other sites More sharing options...
bubu Posted September 7, 2008 Report Share Posted September 7, 2008 Nezinu, kā tu esi tos burtus rakstījis tai Not downloads lapā, bet tur tie ir ierakstīti vistīrākajā Windows-1257 kodējumā (āēūšīōļņčž), nevis utf-8. Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 7, 2008 Author Report Share Posted September 7, 2008 heh... Nezināju ka viņš saglabā windows-1257 kodējumā :D Neuzmanības kļūda, my bad... ps. Paldies! Link to comment Share on other sites More sharing options...
bubu Posted September 7, 2008 Report Share Posted September 7, 2008 Tev jau prasīja vai tu saglabājot failus utf-8... Failus jau glabāju utf-8 encodingā... Nēsu jau tik stulbs :D Ko tad šī tava atbilde nozīmēja? Link to comment Share on other sites More sharing options...
-=HELLBENDER=- Posted September 8, 2008 Author Report Share Posted September 8, 2008 Kā jau teicu, neuzmanības kļūda :D Jo vnk tā kā garumzīmes saglabājās, nodomāju ka viņš saglabā UTF-8 formātā :P Link to comment Share on other sites More sharing options...
Recommended Posts