falck3 Posted February 23, 2014 Report Share Posted February 23, 2014 (edited) Sveiki man ir viena problēma un liekas ka pat ar mātes googles palīdzību man nesanāk to atrisināt Problēma ir : Man mājaslapā "Lietotāji Onlainā" rādās kā "Lietotâji Onlainâ" Kur varētu būt problēma? Paldies Edited February 23, 2014 by falck3 Quote Link to comment Share on other sites More sharing options...
jurchiks Posted February 23, 2014 Report Share Posted February 23, 2014 (edited) Klaviatūras izkārtojums nav latviešu, obviously. P.S. Kā tu uzrakstīji to tekstu un topic title? Edited February 23, 2014 by jurchiks Quote Link to comment Share on other sites More sharing options...
falck3 Posted February 23, 2014 Author Report Share Posted February 23, 2014 Varbūt mana vaina ka nepieminēju ka runa iet par mājaslapu :D Quote Link to comment Share on other sites More sharing options...
jurchiks Posted February 23, 2014 Report Share Posted February 23, 2014 Ir gan tava vaina. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Quote Link to comment Share on other sites More sharing options...
falck3 Posted February 23, 2014 Author Report Share Posted February 23, 2014 (edited) Ir gan tava vaina. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> foreach($lang['txt'] as $k => $v){ $lang['txt'][$k] = utf8_encode($v); } un xml faila ir <?xml version="1.0" encoding="UTF-8"?> home failā bija <meta charset="utf-8"> Uzliku tavu versiju nekas nemainās! Edited February 23, 2014 by falck3 Quote Link to comment Share on other sites More sharing options...
jurchiks Posted February 23, 2014 Report Share Posted February 23, 2014 $lang['txt'][$k] = utf8_encode($v); WTF? Kā tu tos datus glabā datubāzē, ka tev šitādi brīnumi jādara? Quote Link to comment Share on other sites More sharing options...
falck3 Posted February 23, 2014 Author Report Share Posted February 23, 2014 $lang['txt'][$k] = utf8_encode($v); WTF? Kā tu tos datus glabā datubāzē, ka tev šitādi brīnumi jādara? Ne datubāzē bet .php $lang['txt']['lastpost'] = 'Last Post'; $lang['txt']['newtopic'] = 'New Topic'; $lang['txt']['back2topic'] = 'Back to Topic'; $lang['txt']['topic'] = 'Topic'; $lang['txt']['moveto'] = 'Move to'; $lang['txt']['topictitle'] = 'Topic Title'; Ja vairākas valodas tad $lang['txt']['topictitle' tūlkos pēc valodas Quote Link to comment Share on other sites More sharing options...
jurchiks Posted February 23, 2014 Report Share Posted February 23, 2014 Nu tad faili nav saglabāti UTF-8. utf8_encode nav vajadzīgs. 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.