PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Classifieds Support > Classifieds How do I...?

Classifieds How do I...? Wondering how to do something in Classifieds?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old September 22nd, 2008, 07:44 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Changing my website to UTF-8

Hello,

I have a working PhotoPost Classifieds for over a year+.
I am currently re-designing my website, and making it utf8 instead of Windows-1255 (same as ISO-8859-8) that it is right now.

So I need to upgrade PhotoPost Classifieds to use UTF-8 encoding.
This includes converting the current database, not simply "changing the meta tag" of course.


Please guide me on how can I make PhotoPost Classifieds work in UTF-8 encoding.



Thank you
omriamos is offline   Reply With Quote
Old September 22nd, 2008, 06:36 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Our current code can work with UTF. You would need to view your database and change the encoding on the tables to UTF8. I did attempt to do this on an upgrade but not all servers supported this so we removed it.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old September 28th, 2008, 01:41 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Can you please give me the query for changing a table's encoding to UTF8 that will work with your software?
I see a lot of different encoding types, charactersets, etc..

Current data will be converted ?


Thanks
omriamos is offline   Reply With Quote
Old September 28th, 2008, 06:30 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Changing MySQL default character sets to UTF-8 : DerekAllard.com

This should help
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 1st, 2009, 09:17 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Hi,

I have converted the data successfully to UTF-8 (using the "export, search-and-replace, import" method), and now the database and all the tables are configured to UTF-8 ("utf8_general_ci" Collation).

I can see from phpmyadmin that the data is fine, and works great while having my browser at Unicode UTF-8 encoding.

However, on the website itself - the data is corrupted and doesn't display well when the browser is in UTF-8 encoding.
I have cleaned the "cp_cache" table - didn't help.

Any ideas?
omriamos is offline   Reply With Quote
Old April 1st, 2009, 09:22 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Hello

I dont really know what the way your conversion stuff you did does but I can tell you classiifeds 3.1 I released runs in UTF8 fine as seen here

Omegatron Classifieds - Main Index

You can download and install.

If you have corrupt data that might be a result of your conversions.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 1st, 2009, 10:06 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
Please read carefully again - the data is not corrupted.
It is only displayed wrong in classifieds.

p.s.
I'm using classifieds302.
omriamos is offline   Reply With Quote
Old April 1st, 2009, 10:36 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
well it would be nice to see an example

Classifieds 3.02 does not claim to support any language we did not support at the time which is english.

If you wish to truly support all languages I would suggest using 3.1 which does make that claim. I did alot of changes in 3.1 to support all major languages regardless of whether we support the language pack or not. In fact 3.1 has the ability to create your own language translations and phrases.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 1st, 2009, 10:43 AM   #9 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
I have fixed this by adding this line:

Quote:
ppmysql_query("set names 'utf8'", $link);
To the 'pp-inc.php' file, right after the mysql_connect - before these lines:
Quote:
// Let's get all our settings....
$getsets = ppmysql_query("SELECT varname,setting FROM {$pp_db_prefix}settings", $link);
It is now working fine
omriamos is offline   Reply With Quote
Old April 1st, 2009, 11:03 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Yep as noted upgrading to 3.1 would help
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 1st, 2009, 11:11 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Feb 2007
Posts: 31
yeah, but I have a very customized template (completely designed main page) and no time to re-customize it for the new version..
Hopefully in the future..
omriamos is offline   Reply With Quote
Old April 1st, 2009, 11:21 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Have a good one. You might want to think about it though.

Photopost Classifieds 3.1 Released - 3-18-2009
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old April 1st, 2009, 06:16 PM   #13 (permalink)
Senior Member
Verified Customer
 
Geiri's Avatar
 
Join Date: Nov 2002
Location: Reykjavik, Iceland
Posts: 724
This might help
Turning MySQL data in latin1 to utf8 utf-8 - O'Reilly ONLamp Blog

I have been having some trouble with utf-8 and Icelandic.
It seams to me that if the table contend is not writen in utf-8 in the begining the end in carbage.
__________________
Geiri
Geiri is offline   Reply With Quote
Old April 1st, 2009, 06:28 PM   #14 (permalink)
Senior Member
Verified Customer
 
Geiri's Avatar
 
Join Date: Nov 2002
Location: Reykjavik, Iceland
Posts: 724
Quote:
Originally Posted by Chuck S View Post
Sorry Chuck I did not check out your post before I posted the link

I see it's in there
__________________
Geiri
Geiri is offline   Reply With Quote
Old April 1st, 2009, 06:30 PM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,687
Yes I did post a LINK.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Control panel with utf-8 charset problem ttnb Photopost Pro How Do I...? 15 December 6th, 2007 11:46 AM
php5/mysqli/real utf-8 support oneOeight vBGallery Suggestions 2 March 14th, 2006 08:29 AM
charset UTF-8 qti Photopost Pro How Do I...? 0 October 1st, 2005 04:47 AM
Charset utf-8 instead of iso-8859-1 charm Photopost Pro How Do I...? 1 April 1st, 2005 11:40 AM


All times are GMT -5. The time now is 04:05 PM.

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