Friday, December 14, 2012

Argh! MS Word special characters and RSS

This is a possible solution, but it's in Java.  Did a Google search:

how to replace apostrophe from word to plain text

Should also set the character encoding to UTF-8.  Have to add this to my Delphi program and see if it will fix some problems!

These MS 'smart quotes' are a real pain.  I simply looked for any character out of the certain ASCII range and replaced it with a space, but this is amateurish.
http://www.garfieldtech.com/blog/stupid-quotes
http://www.dwheeler.com/essays/quotes-in-html.html
http://www.joelonsoftware.com/articles/Unicode.html

Finally found a quick fix!


The other issue was sizing the image properly.  The programming logic was correct, but the program wasn't always getting the right dimensions from the internal TWebrowser component I had in my program.  It always  seemed to lag behind.  I finally figured out that you had to wait for the image to load completely before proceeding with the image size calculations!  That took me several hours until it dawned on me what the problem was!


This uses the pause routine found here


No comments:

Post a Comment