Jump to content
php.lv forumi

Problēma ar Garumzīmēm


falck3

Recommended Posts

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 by falck3
Link to comment
Share on other sites

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 by falck3
Link to comment
Share on other sites

$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

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...