Support Forums

charset / encoding issues (utf-8 � iso-8859-2)

This is a discussion on charset / encoding issues (utf-8 � iso-8859-2) within the Modules / Plugins / Modifications forums, part of the Developer Forums category; ver. 4.0.8 Designer I'm trying to use encoding for my translation into Polish. As all other Polish sites I used ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-31-2008, 11:46 PM   #1
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Question charset / encoding issues (utf-8 � special characters)

ver. 4.0.8 Designer

I'm trying to use encoding for my translation into Polish. As all other Polish sites I used iso-8859-2. I set iso-8859-2 in language file (translated php) that didn't work. So I manually changed encoding for layout.tpl for front end (from utf-8 to iso-8859-2) , that didn't work either. I changed layout.tpl encoding for admin section..... no go. Whatever I set, my site is alwaych going into iso-8859-1 instead iso-8859-2. I also checked database encoding and set different scenarios. No changes.

Now the other issue.... All categories and other enties typed in via admin (with special characters like ś, ć, ł ) are messed up. Regardless if you choose your browser to show iso-8859-2 or utf-8 ....those characters are messed up.
Instead of NIERUCHOMOŚCI it shows NIERUCHOMO&# 346;CI



Any idea what is going on? Is there a problem within compiled files? What exactly need to be changed to set encoding to iso-8859-2 not only for whole site but also for typed entries (admin and user fields)?

Last edited by MiśUszatek; 09-11-2008 at 08:00 PM.
Mi?Uszatek is offline   Reply With Quote
Old 09-01-2008, 01:16 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I think you will need to use UTF-8 and then make this change:
http://www.68classifieds.com/documen...eshooting/utf8

That has fixed issues like this in the past.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-01-2008, 01:30 PM   #3
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

Thanks Suzkaw,I did change it back to UTF-8 but my file (includes/classes/database/mysql.php) is compiled. I have Designer version and don't see connectToDb function.

What is my option?

Also why my site automatically switch to ISO-8856-1 while all charsets are set to UTF-8 (I changed it back from ISO-8856-2). Any ideas?

Last edited by MiśUszatek; 09-01-2008 at 09:22 PM.
Mi?Uszatek is offline   Reply With Quote
Old 09-02-2008, 01:31 AM   #4
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

This is irritating....

I don't like to bother tech support with something I can't fix myself so I did another set of testing. I reinstalled everything from the scratch and narrowed the problem.

Even that clean install shows UTF-8 encoding, and I use original files. Browsers detect system encoded in ISO-8856-1. Even if I set manually to UTF-8 in browser options...after every refresh of the page ISO encoding is back. This is a major problem causing issues with front end font apearance and data entry via admin.

Categories typed in admin are showing incorrectly because admin section is encoded in ISO-8856-1 (instead of UTF-8) while I type new categories. This is why those fonts are messed up.

So I guess the only question now is which file is causing that encoding issue. I repeat again...all files are original and all have UTF-8 encoding set as charset, but still ISO-8856-1 is detected in browser.

I have 4.0.8 designer version so I can't check compiled files.
Any idea what is going on and what to change? Or maybe tech support need to send some modified / corrected file ?
Mi?Uszatek is offline   Reply With Quote
Old 09-02-2008, 09:54 AM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi,

I think I replied to your ticket yesterday. If you could please send your ftp details and I will try and get this fixed up for you.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-02-2008, 12:07 PM   #6
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

ok, info sent.
Mi?Uszatek is offline   Reply With Quote
Old 09-02-2008, 09:06 PM   #7
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

........any luck?
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-03-2008, 11:05 AM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

I replied to your ticket yesterday. Did you not get my response?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 09-04-2008, 12:22 AM   #9
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

yes I did. Nothing changed. Encoding still doesn't work.
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-04-2008, 09:59 AM   #10
Staff
 
Join Date: Mar 2006
Location: New Jersey
Posts: 2,163
Rep Power: 69
John Snyder is a jewel in the rough
Default

I took a brief look and have a few suggestions for you, if they are not already being done otherwise in the script:

Add this line to includes/init.php which sets the charset being sent to browser by server.
PHP Code:
# Set the default encoding to utf-8
ini_set('default_charset''UTF-8'); 
Be sure this line is in layout.tpl:
HTML Code:
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
__________________
John
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
John Snyder is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
& and & encoding searchresults seymourjames Technical Support 2 08-06-2008 06:55 AM


All times are GMT -4. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0