Upgrade to Kartris messed up Hebrew text


https://forum.kartris.com/Topic6548.aspx
Print Topic | Close Window

By bpaluch - Thu 9 Jun 2016
I upgraded a site from Cactushop to Kartris. Everything seems okay except the Hebrew displays as gibberish.

What appears to be the same set of chars displayed okay in Cactushop.

See aronkodesh.com (click Hebrew - it's fine)

and aronkodesh.com/kartris (click the Israeli flag - no good)

Is there code messing it up? IN Cactushop I remember I had to adjust the 'writestring' function, because it was messing up. Is there an equivalent function here?
By Paul - Mon 13 Jun 2016
Kartris was developed from the start to support unicode. With CactuShop depending on the version it may have been encoded before going into the database. If you view the data inside the CactuShop db directly, does it look like Hebrew, or is it garbled there too?
By bpaluch - Tue 14 Jun 2016
In the Kartris database, we have the same exact 'gibberish' as in Cactushop database. Would we need to convert it somehow to make it usable here? If yes, how?
By bpaluch - Tue 14 Jun 2016
Actually, we found that in some places the code des HTML.Encode, and that messed up the Hebrew. We now have the descriptions and breadcrumbs showing up, and we're working on the category menus, I imagine the same function is applied somewhere to these as well.
By Paul - Wed 15 Jun 2016
I am assuming the Hebrew text in the old db was HTML encoded going into the database. I know encoding was kind of problematic with CactuShop although pretty sure later ones did unicode support.

If you enter text in hebrew in the Kartris back end, it should go into the database as unicode, so when you view the text directly in the DB, you should see it as hebrew. There should be no issue HTML encoding hebrew text if it's unicode, rather than HTML encoded text.