Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 10-14-2008, 10:38 AM   #1
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30
seymourjames has a spectacular aura about
Default iso character sets - admin control panel

Is there a solution to allow iso character sets to be used in the admin control panel - specifically in extrafields (my current ptobrem). If I use a character like � or � the extrafield will not show in the drop down search menu. Likewise iso characters get messed up if they are used in the heading or body of an advert (placed through the admin control panel).
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 10-14-2008, 01:27 PM   #2
Senior Member
 
Join Date: Dec 2006
Posts: 107
Rep Power: 13
darek is on a distinguished road
Default

my langage has lots of ążćźńł etc, I switche to UTF-8
please read this: charset / encoding issues (utf-8 � iso-8859-2)

if you don't want to have problems go fo windows-1250, however other coding will work, but you need to remember
1) admin and front need to use the same coding
2) you need to name/create things with the same coding

if you created extra fields with utf-8 and display them using iso - they will not work!
darek is offline   Reply With Quote
Old 10-14-2008, 04:11 PM   #3
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30
seymourjames has a spectacular aura about
Default

I have iso set in my administration/templates directory (specifically in layout.tpl) but where else would it need to be changed to cover the extrafields etc. I just checked the source of the pages in the administration control panel and as you would expect all of them are set

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

My display pages through the nromal layout.tpl are also all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

However, if I enter an extrafield or text in the title from within the administration control panel they either do not show or come out as a mess. This is strange because in many of the other pages defined through the admin control panel, iso characters are accepted and then rendered correctly.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 10-18-2008, 01:55 AM   #4
Senior Member
 
Join Date: Dec 2006
Posts: 107
Rep Power: 13
darek is on a distinguished road
Default

in your langage files you may have to change this:

PHP Code:
ini_set('default_charset''UTF-8');
// Set the PHP locale to English
setlocale(LC_TIME'de_DE.UTF-8');

// Language Info
define("LANG_CHARSET_CODE","UTF-8"); 

I removed 
//setlocale(LC_ALL, 'de_DE.UTF-8');
and since then I have languge change fot time

just change 
UTF
-8 to iso-8859-or maybe ISO8859-
however you must know that UTF-8 is used through out 68c and you may have some additional problems, you'd better stick with UTF-8

I also had to change these lines in pages.php
PHP Code:
                    //$class_tpl->assign('pPageTitle',safeStripSlashes(htmlentities($rs['pPageTitle'], ENT_QUOTES, 'UTF-8')));
                    //$class_tpl->assign('pPageContent',safeStripSlashes(htmlentities($rs['pPageContent'], ENT_QUOTES, 'UTF-8')));
                    
$class_tpl->assign('pPageTitle',safeStripSlashes($rs['pPageTitle']));
                    
$class_tpl->assign('pPageContent',safeStripSlashes($rs['pPageContent'])); 
darek is offline   Reply With Quote
Old 10-19-2008, 07:00 AM   #5
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30
seymourjames has a spectacular aura about
Default

My problem is that the vast majority of my customers have French keyboards and they use characters like �,�,� etc. I already made the changes to the main language file and it works no problem for what they enter through their front-end when they place adverts. No errors or spurious characters. No problems with RSS feeds neither.

However, I set the language to iso in the layout.tpl file for the administration folder but I cannot get the extrafields to de defined with certain iso characters in them.

1. extrafields cannot make use of �,�, etc
2. the tile of an adverts is also problematical if defined through the admin control panel. It messes up what they have already typed.

What is strange though is that the body of the advert when put in through the admin control panel works fine. No problems.

Wy would just these two things not not work when the rest does. It is like language.tpl file is being ignored.

So basically I have a 90% solution but it would be nice to have it 100%.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISO Latin Character Sets seymourjames v4 Questions & Support 21 08-14-2008 04:41 PM
iso character sets again seymourjames Modules / Plugins / Modifications 4 07-22-2008 02:40 PM
User Control Panel - redirect goin4savvy v4 Questions & Support 5 05-20-2008 12:03 PM
Admin Panel Not available PilotPete v3.1 Questions & Support 8 10-11-2006 08:46 AM
Mod for checkout and admin control DVM v3.0 Questions & Support 0 08-22-2006 07:28 AM


All times are GMT -4. The time now is 09:39 PM.


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