Hello friends, Can someone help me fix some bugs that my template have... my website: http://www.celebridadesdespidas.com (adult content) 1- strange character in the top middle... If I choose Russian language, the character disappears... but If I choose English, appears! 2- when you click in "open", shows a menu popup full of code lines... is a mess! Please, can someone help me? I think that the problem is in login.tpl file: <?php if ($is_logged == TRUE){ $login_panel = <<<HTML <div class="login-link"> HTML; if ($user_group[$member_id['user_group']]['allow_admin']) { $login_panel .= <<<HTML <a href="{$adminlink}" class="admin-link" target="_blank">ÀäìèÃöåÃòð</a> HTML; } else { $login_panel .= <<<HTML HTML; } $login_panel .= <<<HTML <a href="{$link_addnews}" class="add-link">Îïóáëèêîâà òü</a> <a href="{$link_profile}" class="profile-link">ÈÃôîðìà öèÿ î Âà ñ</a> <a href="{$link_pm}" class="pm-link">ÑîîáùåÃèÿ ({$member_id['pm_unread']} | {$member_id['pm_all']})</a> <a href="{$link_logout}" class="lu-link">Âûõîä</a> <div style="clear: both; height: 1px;"></div> </div> HTML; } else { $login_panel = <<<HTML <div class="l-color"> <form method="post" action='' style="margin: 0; padding: 0;"> <table width="200" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="140"> Âà øå èìÿ </td> <td valign="top" width="140"> Ãà ðîëü </td> </tr> <tr> <td valign="top" style="padding-top: 5px;"> <input name="login_name" type="text" class="login-input-text" title="Âà øå èìÿ Ãà ñà éòå" value="ëîãèÃ" onblur="if(this.value=='') this.value='ëîãèÃ';" onfocus="if(this.value=='ëîãèÃ') this.value='';" /> </td> <td valign="top" style="padding-top: 5px;"> <input name="login_password" type="password" class="login-input-text" title="Âà ø ïà ðîëü" value="ïà ðîëü" onblur="if(this.value=='') this.value='ïà ðîëü';" onfocus="if(this.value=='ïà ðîëü') this.value='';" /> </td> </tr> <tr> <td valign="top" colspan="2" style="padding-top: 7px;"> <input onclick="submit();" type="image" class="enter" src="{THEME}/images/enter.jpg" value="âõîä" /><input name="login" type="hidden" id="login" value="submit" /> <div style="float: left;padding: 7px 0 0 5px;" class="fix-moz"><a href="{$link_regist}" title="ðåãèñòðà öèÿ Ãà ñà éòå">Ãåãèñòðà öèÿ</a> / <a href="{$link_lost}" title="âîññòà ÃîâëåÃèå ïà ðîëÿ">Âñå çà áûë?</a></div> </td> </tr> </table> </form> </div> HTML; } ?> PHP:
Hi. Do you use <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Code (markup): in your HTLM? and one more thing, what collation is of you mysql tables for content? Edited: I see you use: <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> Code (markup): change it to: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Code (markup):
Thank you biiccs, but didnt work I changed from UTF-8 to windows-1251 only to translate the template language from Russian to English. See the differences with UTF-8 and windows-1251: windows-1251: UTF-8: Any more ideas?