Author Topic: Problem with russian letters  (Read 11181 times)

0 Members and 1 Guest are viewing this topic.

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Problem with russian letters
« on: January 21, 2006, 03:32:33 PM »
не подскажите как исправить этот глюк:
Везде русский шрифт нормально выводит как видите, кроме этой строки: "Главная страница / Ария / Картинка" и еще например при просмотре популярных:
10 популярных фотографий по рейтингу   
1   Картинка   admin   Ария   0.00 (0 Голос(ов))

за это я так понимаю отвечает {image_rating_1} в top.html

Что посоветуете?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Language] Russian language files & buttons
« Reply #1 on: January 21, 2006, 05:24:43 PM »
ооо...это наиболее болезненая проблема среди русско-язычных...нужно искать в .php файлах вызов htmlspecialchars() функции и удалить их
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Language] Russian language files & buttons
« Reply #2 on: January 21, 2006, 07:30:17 PM »
ооо...это наиболее болезненая проблема среди русско-язычных...нужно искать в .php файлах вызов htmlspecialchars() функции и удалить их

т.е. удалять во всех файлах без разбора или как? у меня с php не очень хорошо, html я лучше знаю. Обьясните пожалуста немного подробнее. заранее благодарен!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with russian letters
« Reply #3 on: January 21, 2006, 07:36:45 PM »
В принципе да, во-всех файлах...
к примеру есть такая строка в details.php:
Code: [Select]
      $comment_user_name = htmlspecialchars($comment_row[$i]['comment_user_name']); после исправления она должна выглядеть так:
Code: [Select]
      $comment_user_name = $comment_row[$i]['comment_user_name'];
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #4 on: January 21, 2006, 07:38:59 PM »
Работает! :) огромное пасиба!

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #5 on: January 21, 2006, 07:56:14 PM »
Можно еще вопрос: поиск работает если вводить русские слова? а то у меня почемуто ничего не находит вобще

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with russian letters
« Reply #6 on: January 21, 2006, 08:08:23 PM »
После исправления всех файлов, нужно запустить "Rebuild search index" plugin
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #7 on: January 21, 2006, 08:20:32 PM »
понимаю, что надоедаю, но подскажите где взять  "Rebuild search index" plugin ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #9 on: January 21, 2006, 08:41:06 PM »
я заменил во всех файлах в корневой папке, а вот нужно ли в остальные лезть? или полностью по всех файлах .php пройтись?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with russian letters
« Reply #10 on: January 21, 2006, 08:45:06 PM »
во всех файлах
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #11 on: January 21, 2006, 09:10:27 PM »
а есть возможность закачки bmp файлов? что нужно для этого зделать?

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #12 on: January 21, 2006, 09:20:06 PM »
странно, я поставил  "Rebuild search index" plugin и выполнил Rebuild, но ничего не изменилось :(

Offline fanofaria

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: Problem with russian letters
« Reply #13 on: January 21, 2006, 10:21:20 PM »
Подскажите пожалуста, может нужно еще что-то сделать чтобы поиск работал?

Offline Lunat

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • В объективе - МИР!
Re: Problem with russian letters
« Reply #14 on: November 29, 2006, 11:28:20 AM »
МНе кажется у меня проблема из той же оперы! Сайт ни с того ни с сего октазался принимать русские символы. Причём как в комментарии так и в поиск, регистрацию пользователей... И т.д. Я удалил из всех PHP все функции htmlspecialchars и плагин применил. Ничего не помогает.  Может, ещё мысли будут?