News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Apostrophes

Started by six gun, July 05, 2018, 06:57:59 AM

Previous topic - Next topic

six gun

i feel sure this must have been dealt with elsewhere on the forum but i cannot find it.
I do not have this problem anywhere else in Joomla.
When i save text with an apostrophe in it, it is saved as [& # 39 ;] i am separating the characters so it does not save in the forum as ' an apostrophe.
i only have this issue in French as i do not use apostrophes otherwise.
i can sort this out by going into the database and replacing the [& # 39 ;] with '
This occurs every time i save text box inputs such as product title, meta key, meta description.

Is there anyway to get round this - as i am editing product entries quite a lot at the moment i feel like i have done this quite a few times.

hellorain

Hello,

You have to pass string some  method like addslashes(string). that will sort out.

Best Regards,
hellorain.
Raincreatives - Virtuemart & Mobile Commerce Experts

GJC Web Design

I also hit this problem with the display of products names containing a <br /> - saved as  &#60;br /&#62;

I translated at template level -- e.g.

$name = str_replace('&#60;br /&#62;', '<br />', $product->product_name);
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

jjk

#3
I didn't find the exact cause of the problem yet. It is probably related to a changed filter in revision 9722. In VirtueMart 3.2.15 the issue seems to be solved for the product name, but it still exists for the meta data.

However, if you are typing on a Windows system, you can use one of the following alt codes to enter 'real' quotes/apostrophes as a workaround.
Alt 0145    '    curly single open quote
Alt 0146    '    curly single close quote (The real Apostrophe)
Alt 0147    "    curly double open quote
Alt 0148    "    curly double close quote
Alt 0132    ,,    low curly doublequote

There are more signs which may look like apostrophes, but I tested only the ones mentioned above.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

six gun

What a star.
i just used the Num Lock -
Press Alt key + 0146 for the ' sign.
Saved this and bingo - it works a treat.

Fantastic advice.