1
Nick_James
Apostrophe versus Right Single Quotation Mark

I have a user who when posting his news messages, gets several garbage characters each time he uses an Apostrophe. When I type an apostrophe, it posts correctly.

I have tracked the issued down and figured out that he is getting a Right Single Quotation Mark character (U+2019) when he types his apostrophe key instead of the standard ASCII apostrophe (U+027).

Are there any suggestions on how to fix this issue so that XOOPS correctly interprets his right single quotation marks?
Nicholas James
President - LaDads
http://www.ladads.info

2
Nick_James
Re: Apostrophe versus Right Single Quotation Mark

Ping
Nicholas James
President - LaDads
http://www.ladads.info

3
Nick_James
Re: Apostrophe versus Right Single Quotation Mark

Ping
Nicholas James
President - LaDads
http://www.ladads.info

4
Nick_James
Re: Apostrophe versus Right Single Quotation Mark

Ping
Nicholas James
President - LaDads
http://www.ladads.info

5
mboyden
Re: Apostrophe versus Right Single Quotation Mark
  • 2008/1/13 16:15

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Try checking the keyboard settings in the operating system. The operating system generates the ASCII encoded character, not XOOPS.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

6
BlueStocking
Re: Apostrophe versus Right Single Quotation Mark

I came across a Code_Snippit that might be adaptable to work in this case. Since it replaces a similar code with another.

https://xoops.org/modules/newbb/viewtopic.php?post_id=9486#forumpost9486
Quote:
$content = preg_replace("/(\015\012)|(\015)|(\012)/","",$content);


Someone with programing experience may be able to tell you a similar fix for your circumstances.

BlueStocking
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

Login

Who's Online

372 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 372


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits