Charset problem

e107 CMS » Forums » Miscellaneous » Translations << Previous thread | Next thread >>
Norick98
Jun 10 2011, 01:41AM
Registered Member #29226
Joined: Jul 26 2006, 08:52AM
Posts: 3
Hi guys... I am total noob in this so maybe I will ask some basic things but...

my native slovak language doesnt display correct on my website. When i translate the lan file i got wierd symbols on website like:

Po�li spr�vu should be correct like Pošli správu

can anyone pls tell me where and which charset has to be changed? what file or mysql?

thx
Go to top
nlstart
Jun 10 2011, 03:50AM
nlstart
  • e107 Site administrator
  • e107 Core developer
  • e107 Translation Team Leader
Registered Member #29855
Joined: Aug 18 2006, 01:12AM
Location: Utrecht, The Netherlands
Posts: 5728
In your language file e.g. e107_languages\Polish.php there should be a line at the top calling the proper language code:
setlocale(LC_ALL, 'pl');

See for more and detailed information this Wiki page: [-link-]
[ Edited Jun 10 2011, 03:54AM ]
Go to top
Website
akogo
Jun 10 2011, 10:42AM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 164
If this does not solve the problem, convert the lan file from iso to utf8 charset e.g. with notepad2: File-Encoding-Utf8
Go to top
Website
marj
Jun 13 2011, 01:49AM
marj
Registered Member #1159
Joined: Mar 16 2003, 08:00AM
Posts: 6161
akogo wrote ...

convert the lan file from iso to utf8 charset e.g. with notepad2: File-Encoding-Utf8

this is the correct answer
Go to top
Norick98
Jun 20 2011, 07:45AM
Registered Member #29226
Joined: Jul 26 2006, 08:52AM
Posts: 3
but id ont understand what am i supposed to do? I use english language because Slovak language cant be installed
Go to top
Moc
Jun 20 2011, 08:09AM
Registered Member #44563
Joined: Apr 12 2008, 03:01AM
Location: The Netherlands
Posts: 4272
1) Use a proper code editor like notepad++ (http://notepad-plus-plus.org/)
2) When editting, make sure the Encoding (see the top menu of notepad++) is set on UTF-8 (without BOM).
3) Save the file and re-upload it
Go to top
marj
Jun 21 2011, 12:54AM
marj
Registered Member #1159
Joined: Mar 16 2003, 08:00AM
Posts: 6161
4/ Slovak can be installed:
in languages/ create a Slovak folder
copy all files from English to Slovak,
filenames containing the string “English_xxx” should be renamed in “Slovak_xxx”
Go to top
Norick98
Jun 21 2011, 08:12AM
Registered Member #29226
Joined: Jul 26 2006, 08:52AM
Posts: 3
Now it works! I used that notepad++, omg who knew its so simple?

THANK YOU ALL
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System