<div dir="ltr"><div class="gmail_default" style="font-size:small"><i>Sorry for the strange title, but my problem touches on all of the topics.</i></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">While trying to execute an #OSProcess method "ExternalWindowsOSProcess command:", the image crashes. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think I have identified the source of the problem as encoded data which I have acquired from the web.  My application seems to be reliable except in the circumstance when there is \u data in the string which is presented as the Question Mark character #?. The data is in JSON syntax. The raw data string is "Nathan\u2019s". It is converted to  "Nathan?s" somewhere, but I have not found the method where it happens.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Simple test case: </div><div class="gmail_default" style="font-size:small">This command fails and the image crashes when the value of ? = 8217.</div><div class="gmail_default" style="font-size:small">ExternalWindowsOSProcess command: 'cmd.exe /c ', 'echo Nathan?s' <br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The command executes when the ASCI single quote #' is used.</div><div class="gmail_default" style="font-size:small">ExternalWindowsOSProcess command: 'cmd.exe /c ', 'echo Nathan's' <br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How can I convert the value of an element of a WideString from 8217 to something less than 255?</div><div class="gmail_default" style="font-size:small">Or do you have a better idea?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">jrm</div><div class="gmail_default" style="font-size:small"><br></div></div>