VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: nordmograph on December 31, 2012, 10:38:28 AM

Title: Encoding problem
Post by: nordmograph on December 31, 2012, 10:38:28 AM
Hello
I'm currently building a shop in Japanese
Products name show correclt almosr everywhere except when rolling over category's product thumbs (picture title tooltip)
and when adding a product to the cart:

������������ was added to your cart
Title: Re: Encoding problem
Post by: bytelord on January 06, 2013, 17:08:17 PM
Hello,

Please try this one: http://forum.virtuemart.net/index.php?topic=111359.msg374103#msg374103
Title: Re: Encoding problem
Post by: nordmograph on January 07, 2013, 11:40:27 AM
Yes , at least for the cart, it worked.
But remember this has to be applyed to the category view product thumbnails title tooltip too.

Thanks!
Title: Re: Encoding problem
Post by: Milbo on January 07, 2013, 11:42:30 AM
give us a patch, or write here exactly what we should replace.
Title: Re: Encoding problem
Post by: nordmograph on January 07, 2013, 12:08:57 PM
Actually the fix described in
http://forum.virtuemart.net/index.php?topic=111359.msg374103#msg374103
only works for the cart.

When it comes to frontpage and category views, tooltips show squares on Japanese characters so it's a different encoding issue, and only tooltip related.
in virtuemart/templ/default_categories.php for eg.

echo $category->category_name
works fine
when
title="<?php echo $category->category_name  ?>"
in a A  tag shows squares on product title and category thumb rollovers.

I have no fix yet.
Title: Re: Encoding problem
Post by: bytelord on January 07, 2013, 15:16:54 PM
Hello,

In version 2.0.14 this was working (image title)?  I am thinking that is not related to vm2, the title should work fine ... works for me in 2.0.16. Do you use any 3rd party fonts? Do you have any custom template joomla or vm that uses javascript for the tooltips?
Any screenshot? Joomla Version? Database encoding?

Regards

Title: Re: Encoding problem
Post by: nordmograph on January 07, 2013, 15:44:21 PM
Well I could verify this with default beez or atomic
with default vm2.0.16 views on j2.5.8

No 3rd party fonts, DB encoding is utf8_general_ci
This is on a Wamp setup.

Also if I add a french accent in the japanese name (as é) :
アイボリーのコートフックé
only the é shows ok.


[attachment cleanup by admin]