Detecting UTF-8 Encoded Files

2009-08-07 Thread Ken Ray
I recently had a need to be able to detect whether a vCard was UTF-8 encoded or not so that I could run the proper decoding on it... after a healthy web search, I found an article on Instructables for how to walk through the text of a file and be able to determine this:

Re: Detecting UTF-8 Encoded Files

2009-08-07 Thread Klaus Major
Hi Ken, I do not see any problem (and wouldn't if there were ;-) but Mark Waddingham once helped me out with a working function exactly for determining how a VCARD is encoded! Here it is including Marks (very helpful)comments: # vCards are stored as a text file, however, the text encoding