 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
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
|
| |
September 22nd, 2008, 06:36 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
September 28th, 2008, 06:30 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
| |
| |
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?
|
| |
April 1st, 2009, 09:22 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| |
April 1st, 2009, 10:36 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 |
| |
April 1st, 2009, 11:03 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Yep as noted upgrading to 3.1 would help |
| |
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.. |
| |
April 1st, 2009, 06:16 PM
|
#13 (permalink)
| | Senior Member Verified Customer
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
|
| |
April 1st, 2009, 06:28 PM
|
#14 (permalink)
| | Senior Member Verified Customer
Join Date: Nov 2002 Location: Reykjavik, Iceland
Posts: 724
| Quote:
Originally Posted by Chuck S | Sorry Chuck I did not check out your post before I posted the link
I see it's in there
__________________
Geiri
|
| |
April 1st, 2009, 06:30 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,687
|
Yes I did post a LINK. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 04:05 PM. | |