hey all -
i've got a small problem with people cut and pasting from Word documents into a textarea. I can already detect all the carriage returns, but I'm getting a problem with those bullet points and various " marks. They are being stored in my db as 0 with a line through it, or variations on that, while some of the " and ' are being stored as ASCII codes. Unfortunately, I'm taking this data and generating an RTF file from it, so the ASCII codes show up.
I was thinking about regexp-ing the input, but how can I know any/all of the possible combinations for bullets, or ASCII code, etc?
this seems like it would be a fairly common problem, so I was hoping that someone else has encountered this and defeated it.
TIA -
leo
------------
Leo Mendoza
lmendoza@garbersoft.net
i've got a small problem with people cut and pasting from Word documents into a textarea. I can already detect all the carriage returns, but I'm getting a problem with those bullet points and various " marks. They are being stored in my db as 0 with a line through it, or variations on that, while some of the " and ' are being stored as ASCII codes. Unfortunately, I'm taking this data and generating an RTF file from it, so the ASCII codes show up.
I was thinking about regexp-ing the input, but how can I know any/all of the possible combinations for bullets, or ASCII code, etc?
this seems like it would be a fairly common problem, so I was hoping that someone else has encountered this and defeated it.
TIA -
leo
------------
Leo Mendoza
lmendoza@garbersoft.net