Strange Chinese characters in price field (no multilingual shop)

Started by quartus, November 04, 2015, 12:19:30 PM

Previous topic - Next topic

quartus

Hi

After a migration from Joomla 2.5.28 and VM 2 to 3.0.9 (in the meantime updated to 3.0.10), we have a very strange issue with the price field in our vm shop:

In the middle of the displayed price, a chinese character is displayed. This is how it looks like

Fr. 1鮦.80  :o


  • We have single language environment ((Swiss)German), so there's absolutely nothing in Chinese all over the page
  • In the backend, the price is displayed correctly
  • it's not just on the product detail page, it's on all pages, the product price is displayed
  • As it seems, the issue occurs only with products, that have child products (and with the child products, of course)
  • I searched for the characters inside the db - there's absolutely nothing

I just don't figure it out, where the problem is. Since we should have gone online by last week, I desperately hope, anyone knows about this problem - an even more important - knows, how to solve it or where to search for the reason.

thanks in advance for any help!

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PRO

I would 1st look in your currency settings

then, it could be an encoding issue

are you testing with my template overrides?

quartus

Dear PRO, dear GJC

Thanks for checking my topic!

@ PRO: sorry, what to you mean by "are you testing with my template overrides?"

I did check the language / currency option as well. Everyhting seems to be set correctly there. I also changed the font without any result. I just don't get, why just one single character in the middle of the field value is changed.

So here I'am with the link to the product page with the issue:

http://test.metallbauteile.ch/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=115&Itemid=324

the other product with child products works like it should, I don't see any difference between them.

http://test.metallbauteile.ch/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1&Itemid=270

user: mbtsag
pass: mbtsag

thank you.

PRO


GJC Web Design

totally bizarre.. it really is coming back with a chinese encode letter

Fr. 2&#39262.60

http://www.isthisthingon.org/unicode/index.phtml?glyph=995E

{"basePrice":null,"variantModification":null,"basePriceVariant":null,"basePriceWithTax":null,"discountedPriceWithoutTax"
:null,"salesPrice":"Fr. 2&#39262.60","priceWithoutTax":"Fr. 2&#39095.00","salesPriceWithDiscount":null
,"discountAmount":null,"taxAmount":"Fr. 167.60","unitPrice":null,"messages":"\n<div id=\"system-message-container
\">\n<\/div>"}

as pro said try with with the protostar template
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Jörgen

Hello

I agree with GJC and Pro that this probably lies in the template overrides. Could be some styling of the price that has a missing quote or a wrongly escaped character ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

quartus

thank you, guys!

I'm checking out the template / override approach right now and get back to you.

quartus

Hello everybody

I just deactivated the overrides in the template (by deleting the folder) and I even activated the checkbox "use vm css" in the vm configuration. Although the layout was - like expected - completely destroyed - the creepy little chinese signs persist. >:(

Now I noticed, the chinese characters are even there in the vm backend (products), but only in the list view. When I open the product (to "kill" the chinese character out of the field) they're gone - the price is like it should be, but unfortunately only there in the product details.

As far as I understand the situation, I could now exclude the template overrides so far (could I?). This and detecting the problem in the backend as well would mean... uhm, what exactly?

Thank's for any other ideas.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

quartus

hey folks - I guess I found the cause, but honestly I have no idea where to fix it...

The problem obviously occurs, when I use the standard thousands seperator ' which is used by default in the Swiss currency settings.

When I use another separator (´), the bloody Chinese signs are gone - everywhere! Although ´ is actually not the right separator for Switzerland, I'm more than fine with this workaround.

But the (non-urgent) question remains: What is happening exactly (and where)? Since the problem occurs despite the activated template, it must be a problem in the guts  of my virtuemart installation (maybe caused by the migration)? Maybe anybody has a clue?


Jörgen

Hello

Using a quote in the middle of the value does give some problems. See if You can use the escape character sequence for the quote sign:
&#39;

Regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Milbo

damn this forum needs an update for "like this. Yepp, Jörgen that is the answer.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

quartus

Thanks, Jungs!

I already tried to enter

&#39;

in the field "thousands seperator". The mysterious signs from the PRC are instantly back again. When I check the thousands separator field again, my new entry has been striped to just a "&".

Kinda weird, isn't it?


Jörgen

Hello quartus

That should have been the answer. There must be some decoding that misses the target. Looks like a mission for Max.

have a nice evening :)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.