alexman Posted August 14, 2013 Posted August 14, 2013 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
MrPhil Posted August 14, 2013 Posted August 14, 2013 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).
alexman Posted August 14, 2013 Author Posted August 14, 2013 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.
MrPhil Posted August 14, 2013 Posted August 14, 2013 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.