Snukzz Posted March 26, 2008 Report Share Posted March 26, 2008 Situacija: Lapa staav uz hostinga serveris.lv Lapa kodeeta UTF8. Datubaaze tekstu glabaa utf8_latvian_ci Raada visu pareizi iznjemot datus kurus lapa nosuuta UZ MySQL. Tad suutiitie burti āčēģļīķō lapaa pie izvades paarveershas par �?�?ēģļīķ�? un ieksh datubaazes paraadaas kaa Ä?Ä?ēģļīķÅ? BET - identisks skripts uz elva1.lv hostinga, maajas-darba APACHE - straadaa bez gljukiem. Taatad, pienjemu ka varbuut vaina kautkur serverii, bet ko lai shiem iestaasta? Varbuut ir kaads cits risinaajums? P.S> Izmekleejos pa shejienes teemaam, neko kas liktu visam straadaat pareizi uz hostinga serveris.lv taa arii neatradu. Link to comment Share on other sites More sharing options...
andrisp Posted March 26, 2008 Report Share Posted March 26, 2008 SET NAMES utf8 ir ? Link to comment Share on other sites More sharing options...
Snukzz Posted March 26, 2008 Author Report Share Posted March 26, 2008 ir. Link to comment Share on other sites More sharing options...
andrisp Posted March 26, 2008 Report Share Posted March 26, 2008 Tie dati, kas tiek nosūtīti uz mysql, nāk no kādas formas ? Link to comment Share on other sites More sharing options...
Snukzz Posted March 26, 2008 Author Report Share Posted March 26, 2008 tieshi taa. Link to comment Share on other sites More sharing options...
andrisp Posted March 26, 2008 Report Share Posted March 26, 2008 Interesanti. Un točna zini, ka utf-8 dati no servera nāk nesalauzti ? un attēlojas pārlūkā normāli ? Link to comment Share on other sites More sharing options...
Snukzz Posted March 26, 2008 Author Report Share Posted March 26, 2008 Es daznedazaadi jamo testeeju - tie kas ir ieksh php failiem tip tur texts bla bla blaa - tie normaali - tie kas no MySQL - garumziimes nogljuchii. Link to comment Share on other sites More sharing options...
andrisp Posted March 26, 2008 Report Share Posted March 26, 2008 Tātad arī pie izvades no db ? Link to comment Share on other sites More sharing options...
Snukzz Posted March 26, 2008 Author Report Share Posted March 26, 2008 hmm. vareetu buut ka vinsh tos datus, kurus sagruudis ieksh DB paarkodee uz utf8, bet vinjam nesanaak pareizi dati - jo jau datubaazee tie ievietoti nepariezi... manupraat taa... Link to comment Share on other sites More sharing options...
Snukzz Posted March 26, 2008 Author Report Share Posted March 26, 2008 lapu paarceela uz servera kursh atbalsta PHP5 un viss straada! :) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted March 26, 2008 Report Share Posted March 26, 2008 kursh atbalsta PHP5 un viss straada! :) PHP versijai nav nekada sakara ar kodejumu .... ja vien neveic mistiskas darbibas ar pashiem datiem.... tb. ja no formas atnak UTF-8 tad PHP uz DB arii parsuutiss UTF-8.... IMPHO skjiet ka tev makaronus sakara uz ausiim.... Link to comment Share on other sites More sharing options...
darksign Posted March 26, 2008 Report Share Posted March 26, 2008 (edited) Mans ieteikums lietot nevis utf8_latvian_ci bet utf8_general_ci, varbūt tas palīdzēs ;) un ja nepieciešams pirms attēlošanas izmanto caur php nosūtītu header ("...charset=utf-8") p.s. tepat forumā bija rakstiņš par MySQL un čarsetiem, pameklē to un palasi ;) Edited March 26, 2008 by darksign Link to comment Share on other sites More sharing options...
Recommended Posts