Subject:Can't encode 0x4 in text Author:(Deleted User) Date:29 Oct 2008 03:53 PM Originally Posted: 29 Oct 2008 03:43 PM
I am trying to convert attached file from csv to xml, but get the error "Can't encode 0x4 in text". If I strip the file to 3 lines or to 50 I don't get the message, so it must be some invalid character which is not recognised by the input encoding, but what's the easiest way to find the problem giving character in this file of 12000 records?
Best regards,
Cynthia
Test_1000.csv Extract 1000 records to find wrong char
Subject:Can't encode 0x4 in text Author:Minollo I. Date:29 Oct 2008 04:19 PM
One way is to use regular expressions.
Open the file inside Stylus Studio as if it was an XML file; then do Ctrl+F, check the "regular expression" checkbox and enter \x04 as the search expression.