Author Topic: Polish Charset problem  (Read 6699 times)

0 Members and 1 Guest are viewing this topic.

Offline szymonkot

  • Pre-Newbie
  • Posts: 6
    • View Profile
Polish Charset problem
« on: December 20, 2010, 01:14:07 AM »
I have a "little" problem.

I've made "Śląska Galeria Fotografii Pożarniczej" (Silesian Fire Service Photos Galery) on http://www.sgfp.com.pl and my problem is:

I cannot set polish letters in APC and home page in same time. If I have polish letters in text from lang.php in comments polish signs is replaced by "?", if i change charset set to have polish letters in comments , in text from lang.php polish signs is replace by "?". Example - "Last Photos" in polish will be "Ostatnie Zdjęcia" but is "Ostatnie Zdj?cia" or letter "ę" (like other polish special chars -> ą,ę,ś,ź,ć,ń,ó,ł,ź) is changed by some weird letters seems like german special characters or something.

What i can fix it? Setting charset "ISO-8859-1" in admin.php and lang.php or setting somewere else (in header.html mayby). Charset is only in lang.php file, set $lang['charset'] = "ISO-8859-1"; ? I tested 8859-2 and problem still be appear.

Yesterday I try install Shoutbox mod http://www.4homepages.de/forum/index.php?topic=10545.0 and polish sign crashed totally (in home page and comments), site need be restored :) I've check files from this mod, and probably problem is in "unhtmlspecialchar" function in mod files - if I delete this function is mod be working properly?

Gallery is 1.7.8 version, + Avatar, Last Comment, News Mods be added.

EDIT: i try change charset to "ISO-8859-2", but effect is - many DB_SQL table errors , and "?" instead polish letters. SQL is in UTF-8_unicode (that myphpadmin says)

I apologize for my bad english  :wink:

Best Regards.

Szymon
« Last Edit: December 20, 2010, 08:54:55 AM by szymonkot »

Offline szymonkot

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Polish Charset problem
« Reply #1 on: December 21, 2010, 11:11:54 AM »
Sorry for post after post.

I'm still fighting with this charset problem and found next error, if in search textbox write one word (ex. Proszkowy) the search engine works fine and show list on find photos, but if I write sentence (ex. Kerax + Zawiercie or Kerax Zawiercie) find list is empty. Is any error and my search button not search sentence?

It is related to my charset & language problem ?

Offline kubiczek

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • Gross Peterwitz
Re: Polish Charset problem
« Reply #2 on: December 21, 2010, 08:52:23 PM »
Hallo,

sprawdziles czy w nowych plikach.html ktore dodales, bylo n poczontku {header}  bo jak ja dodawalem mod`S
to mialem problemy z polskimi literami.

ja uzywam w main.php  te literki, 

$lang['mail_to'] =  "An:";
$lang['your_name'] = "Twoje imię";
$lang['your_mail'] = "Twój email:";
$lang['wohnhaft'] = "Zamieszkały w :";
$lang['angaben'] = "Dane zmarłej osoby:";


i w wszystkich krajach mi sie dobrze strona w jezyku polskim pokazuje.
zobacz sam http://www.grosspeterwitz.org/friedhof/4images/index.php?l=polski

poz kubiczek


Offline szymonkot

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Polish Charset problem
« Reply #3 on: December 21, 2010, 10:54:50 PM »
Witam

Poszedłem podobną metodą i u mnie polskie literki w main.php to np. ł co daje literkę "ł" przerobiłem tak cały main.php i admin.php i jest już lepiej o wiele. Polskie znaki mam i w panelu, i na stronie i w komentarzach i opisach. Trochę na około może metoda ale najważniejsze że skuteczna. Teraz walczę z tym szukaniem, bo szuka pojedynczych wyrazów bez problemu, ale jak dam dwa to już nie znajduje nic.

Offline kubiczek

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • Gross Peterwitz
Re: Polish Charset problem
« Reply #4 on: January 10, 2011, 06:21:55 AM »
Hallo,

podpadlo mi ze jak w lang/polish/main.php

jest
//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
$lang['charset'] = "iso-8859-1";
$lang['direction'] = "ltr";


zamiast
//-----------------------------------------------------
//--- Templates ---------------------------------------
//-----------------------------------------------------
$lang['charset'] = "iso-8859-2";
$lang['direction'] = "ltr";


to terz sa problemy z wyswietlaniem polski liter.

poz