Product name with weird characters inside mini cart in 2.0.16

Started by etna, December 22, 2012, 17:33:24 PM

Previous topic - Next topic

etna

Hello
After upgrade from 2.0.14 to 2.0.16, clicking "add to cart", the popup mini-cart shows the product name with weird characters (Î�Î�§Î¤Î¥Î�Î�Î�).
The cart module and the check out page are OK.
The VM 2 is multilingual in Greek and English.
I checked all db tables and are OK (utf8_general_ci )
I forced Database Collation to utf8_general_ci with Admin Tools without luck.
Any ideas?

Thank you
Joomla 2.5.8 | VM 2.0..16 | PHP 5.3.13

bytelord

Thanks strange,

Haven't test it with greek yet also, any live url?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

Hello again,

Hoping the re-Collation did not Collation the data wrong...

I test it with a localsite, i updated and everything is working fine with Greek characters... Please provide a live url, i am thinking that may be there is a js conflict and the javascript function encodeURIComponent is not running properly inside vmprices.js ... not sure, but we can check it ...

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

etna

Sorry
I tested in WAMP not in live server.
I will make a new clean installation to check it.
Thank you

bytelord

Hello,

I tested on XAMPP, works fine, also check your database, are the data readable?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

etna

Clean Joomla 2.5.8 installation on WAMP
clean VM 2.0.16 installation
Joomla original template
Data Base has readable records in Greek

The same problem in mini-cart ???





bytelord

I don't know, is strange, test it again working fine ... if you try to change the browser encoding from it's options?
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

etna

Made all possible encodings in firefox  -  :(
The strange is that at Shopping cart module and in check out page the name is OK.

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

bytelord

hmm ...

The problem is inside template files, specific under productdetails/tmpl/default_addtocart.php

around line 103
<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name?>"/>

change it to:

<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_nameENT_QUOTES'utf-8'?>"/>
and will work.

This was added from a suggestion in the forum but causes issues because didn't parse the encoding for compatibility with multi-byte 8-bit Unicode

Fix added in 2.1 trunk

Thanks for finding that tiny bug ;)

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

etna

Thank you Nikos.
The code worked fine locally.

I owe you a drink!
maybe a... raki?




bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

etna


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum