I have a strange text input issue that I'm not quite sure how to sanitize/parse for. My project manager copied and pasted some email addresses from Outlook into our ZF1.11 app. The html form is charset=UTF-8 and there was nothing visually unusual about the input into the form. But when the strings hit the EmailAddress Zend_Form validator they threw an error saying TLD and Valid Network Name failures. They were standard .coms. I was so puzzled, I had her copy them through Notepad to remove anything possibly hidden and voila, they worked.
I inspected the clipboard data and all the *TEXT string objects looked good, no hidden characters (unless the @ was somehow not an @, or . was not a . etc.). This app is only in English right now. I'm worried localisation may expose more string confusions like this. Does anyone have suggestions on how we can clean/format basic form text inputs that otherwise appear like perfectly valid entries? Thanks a lot! -Wilson -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
