php xml writing problem
- Started
- Last post
- 8 Responses
- section_0140
you're both right.
The colleague's email program or word processor software was sending some me single quotes and double quotes in a format it didn't like. I narrowed the problem down to 2 paragraphs and then deleted and replaced all single and double quotes. It went through like a charm after that. The style of the characters were visibly different compared to the ones I entered. Yes, I have full error reporting on.
I'm gonna go smack the shit out of him and tell him to write the rest of his entries in notepad.
Thanks!
- heavyt0
yeah, Word can be a real bugger.
I have found luck using the accept-charset attribute in the CMS form. It usually cleans up these errant chars before they go into the db and cause further issues.
- falcadia0
I deal with the problem on a daily bases
- acescence0
check out TinyMCE, it's a javascript editor that you can put on a text field, you can filter out all the bad stuff with it.
- acescence0
where is the text coming from? word maybe? is it UTF-8? maybe there are invisible control characters you're not seeing? do you have all error reporting enabled in php?
- heavyt0
i concur.
usually it is a weird line feed or return from a Word file that causes shizz like that.
I would make sure you are displaying errors. ini_set('display_errors','On');
that will give you a better hint, if nothing else
- rounce0
Might it be that the field length in the table you're pulling this from isn't long enough?