TextArea without Smart Quotes

  1. 4 months ago

    Jon O

    Jan 3 Pre-Release Testers, Xojo Pro Chicago Area USA

    How can I set up a text area so smart quotes are not used? The problem is that when using XojoScript, it doesn't recognize smart quotes but is only accepting Chr(34) as a valid quote character. Text Areas return Chr(8220) and Chr(8221). Obviously, that's all part of UTF8.

    If you doubt me go and run Xojo's XojoScript example. Replace their Print "Hello World" line with your own string in quotes and see it crash.

    Obviously, I can use ReplaceAll to fix this in code, but I'd like to know how I can just make it a plain ASCII text area...

  2. Philippe C

    Jan 3 Pre-Release Testers, Xojo Pro, XDC Speakers Answer Ottawa, Canada

    It's a feature of the underlying NSTextView... see https://forum.xojo.com/18439-how-to-prevent-smart-quotes-from-being-entered-into-a-textarea/0

  3. Jon O

    Jan 3 Pre-Release Testers, Xojo Pro Chicago Area USA

    Perfect. Thank you.

or Sign Up to reply!