Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

very used french sign ' close the text information from shipping policy


alexman

Recommended Posts

At shipping.php I must write the text here:

define('TEXT_INFORMATION', 'put the text here')

In french language there are a lot of words who use sign '. For exemple l'empoi,d'utiliser and so on.

But the sign ' is understood like the end of text.

How to pass over this?

thanks

Link to comment
Share on other sites

That's not an ASCII apostrophe, but an acute or grave accent you're using as an apostrophe? How are you entering this character? Are you cutting and pasting from Word or Outlook? They will bring over these characters as "MS Smart Quotes" (possible looking like an acute accent). Are you on osC 2.2 still, with Latin-1 display and database? If so, Smart Quotes are interpreted as control codes and will usually cut off the text at that point. If you are on osC 2.3.x, you should be in UTF-8 encoding in both the page display and the database, and it is usually OK to cut and paste in Smart Quotes directly from Word or Outlook (no promises about what will happen if you put the text in Notepad or something first).

Link to comment
Share on other sites

That's not an ASCII apostrophe, but an acute or grave accent you're using as an apostrophe? How are you entering this character? Are you cutting and pasting from Word or Outlook? They will bring over these characters as "MS Smart Quotes" (possible looking like an acute accent). Are you on osC 2.2 still, with Latin-1 display and database? If so, Smart Quotes are interpreted as control codes and will usually cut off the text at that point. If you are on osC 2.3.x, you should be in UTF-8 encoding in both the page display and the database, and it is usually OK to cut and paste in Smart Quotes directly from Word or Outlook (no promises about what will happen if you put the text in Notepad or something first).

 

Yes I use Osc 2.3.3 and open shipping.php with UTF-8 encoding.

Sign ' I entered from keyboard. I've solved the problem to bring in front of ' , the sign \.

So \' solved the problems.Thank you for your answer.

Link to comment
Share on other sites

Ah, this was in the language or other PHP file? Yes, you would need to escape a ' used within a string (delimited by ' quotes). You should have gotten a PHP error message if you had a stray unescaped ' in the text. Is that what you meant by "understood as end of text"? Well, it's fixed anyway. Just remember to escape \' within a string.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...