smart-quotes

iOS 11 Safari HTML - Disable “Smart Punctuation”?

[亡魂溺海] 提交于 2019-12-01 08:10:48
Is there a good way to disable the " Smart Punctuation" the iOS 11 Apple Keyboard generates - in Safari on an HTML login form - username field in particular? The problem is that we have users with apostrophes in their usernames. Typing their usernames on iOS 11 and not knowing the subtleties of unicode they are not able to sign in. Ideally we could just instruct such users to disable smart quotes or type the proper character by holding down the apostrophe key - but I am working on educational software for small children and that is out of the question. The problem is compounded by the fact

iOS 11 Safari HTML - Disable “Smart Punctuation”?

被刻印的时光 ゝ 提交于 2019-12-01 05:23:45
问题 Is there a good way to disable the " Smart Punctuation" the iOS 11 Apple Keyboard generates - in Safari on an HTML login form - username field in particular? The problem is that we have users with apostrophes in their usernames. Typing their usernames on iOS 11 and not knowing the subtleties of unicode they are not able to sign in. Ideally we could just instruct such users to disable smart quotes or type the proper character by holding down the apostrophe key - but I am working on educational

Converting ″Straight Quotes″ to “Curly Quotes”

大憨熊 提交于 2019-11-28 18:47:29
I have an application which uses a Javascript-based rules engine. I need a way to convert regular straight quotes into curly (or smart) quotes. It’d be easy to just do a string.replace for ["] , only this will only insert one case of the curly quote. The best way I could think of was to replace the first occurrence of a quote with a left curly quote and every other one following with a left, and the rest right curly. Is there a way to accomplish this using Javascript? You could replace all that preceed a word character with the left quote, and all that follow a word character with a right

C# How to replace Microsoft's Smart Quotes with straight quotation marks?

﹥>﹥吖頭↗ 提交于 2019-11-28 04:41:58
My post below asked what the curly quotation marks were and why my app wouldn't work with them, my question now is how can I replace them when my program comes across them, how can I do this in C#? Are they special characters? curly-quotation-marks-vs-square-quotation-marks-what-gives Thanks A more extensive listing of problematic word characters if (buffer.IndexOf('\u2013') > -1) buffer = buffer.Replace('\u2013', '-'); if (buffer.IndexOf('\u2014') > -1) buffer = buffer.Replace('\u2014', '-'); if (buffer.IndexOf('\u2015') > -1) buffer = buffer.Replace('\u2015', '-'); if (buffer.IndexOf('\u2017

How do I convert Word smart quotes and em dashes in a string?

丶灬走出姿态 提交于 2019-11-27 00:52:48
I have a form with a textarea. Users enter a block of text which is stored in a database. Occasionally a user will paste text from Word containing smart quotes or emdashes. Those characters appear in the database as: –, ’, “ ,†What function should I call on the input string to convert smart quotes to regular quotes and emdashes to regular dashes ? I am working in PHP. Update: Thanks for all of the great responses so far. The page on Joel's site about encodings is very informative: http://www.joelonsoftware.com/articles/Unicode.html Some notes on my environment: The MySQL database is

C# How to replace Microsoft's Smart Quotes with straight quotation marks?

橙三吉。 提交于 2019-11-27 00:36:37
问题 My post below asked what the curly quotation marks were and why my app wouldn't work with them, my question now is how can I replace them when my program comes across them, how can I do this in C#? Are they special characters? curly-quotation-marks-vs-square-quotation-marks-what-gives Thanks 回答1: A more extensive listing of problematic word characters if (buffer.IndexOf('\u2013') > -1) buffer = buffer.Replace('\u2013', '-'); if (buffer.IndexOf('\u2014') > -1) buffer = buffer.Replace('\u2014',