thready
asked on
escaping values in import/export setting
Hi Experts,
I am writing out a tab delimited file of records (1 record per line). My data sometimes contains tabs and CRLF pairs. How do I escape these items correctly and how do I unescape them?
Thanks for your help!
Mike
I am writing out a tab delimited file of records (1 record per line). My data sometimes contains tabs and CRLF pairs. How do I escape these items correctly and how do I unescape them?
Thanks for your help!
Mike
ASKER
Hi Jim,
I do have accents on certain characters as well... Like èéêèà ç
I'm starting to think I should allow multiple lines and have markers for begin and end of each record. Just one character to delimit records, namely the | (bitwise or) character. So for each field, I escape all backslashes by doubling them all and then I replace any instances of | with a \|
Do you think this is complete?
Mike
I do have accents on certain characters as well... Like èéêèà ç
I'm starting to think I should allow multiple lines and have markers for begin and end of each record. Just one character to delimit records, namely the | (bitwise or) character. So for each field, I escape all backslashes by doubling them all and then I replace any instances of | with a \|
Do you think this is complete?
Mike
ASKER
Oh - what do I use as begin and end record markers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If your fields can contain anything in the range 0 - 0xFF, then a different strategy will be required.
Jim