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; I tried that... no change. It looks like detects language (name sof the months are shown in Polish) but there ...


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

Reply
 
Thread Tools Display Modes
Old 09-04-2008, 04:23 PM   #21
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

I tried that... no change.
It looks like detects language (name sof the months are shown in Polish) but there is some kind of issue with coding special characters (while rest of the page is coded correctly and show special characters without any problems)
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-04-2008, 04:27 PM   #22
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

How about this:
setlocale(LC_TIME, 'de_DE.UTF8');
Basically add the .UTF8 to the end of the it.
__________________
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, 04:44 PM   #23
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

that worked perfect, thanks
I will let you know if I find anything else
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-04-2008, 04:52 PM   #24
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

That sounds great. Would you mind posting the code you used to get it working? Just for future reference and I am adding this to our documentation section.
__________________
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, 05:04 PM   #25
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

those 2 changes fixded the problem:


file: connections/classifieds.php

# Set the default encoding to utf-8
ini_set('default_charset', 'UTF-8');



file: lanuage/yourlanguage.php

setlocale(LC_TIME, 'de_DE.UTF8');

where
de_DE is replaced with local language symbol (for ex. fr_FR for French / pl_PL for Polish)
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-04-2008, 05:08 PM   #26
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

Great and thanks for posting that. I have updated the docs here:
UTF-8 [68 Classifieds]
__________________
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-09-2008, 06:22 AM   #27
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

I found one more encoding related issue.

when I add listings via admin:
mysite.com/administration/listings.php?action=add

entered special characters are not encoded correctly
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-09-2008, 08:30 AM   #28
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

Was it a specific field or all fields in admin?
__________________
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-10-2008, 09:59 PM   #29
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

yes ...I created extra fields to enter addresses for listed properties. Once go to ad listing (in admin site)and try to add special/language related characters,.... they show messed up.
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Old 09-11-2008, 07:50 PM   #30
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

...actually I did few more tests and noticed that all entries typed in via extra fields share the same problem with special characters.

any idea?
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek 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 03:55 AM.


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