Solved

How can i identify UTF-7 and UTF-8 format by using TEC ver 1.4

Posted on 2001-09-17
2
487 Views
Last Modified: 2013-12-26
How can i identify UTF-7 and UTF-8 format by using TEC ver 1.4
0
Comment
Question by:samir_ganu
2 Comments
 
LVL 2

Accepted Solution

by:
roov earned 25 total points
ID: 7106936
Samir,
Unicode files usually have a BOM (Byte Order Mark) sign at their start.
If the first three bytes of the stream are byte0=FF byte1=BB and byte2=BF, then the file is UTF8.

Optionally, using CarbonLib 1.2.5 you have GetTextAndEncodingFromCFString (declared in in Appearance.h). Then use the types in CFString.h for UTF8 and UTF7 (NonLossyASCII).

Within TEC, you can use Sniffers (TECSniffTextEncoding) - let me know if you want a code sample (reuven.sherwin@xmpie.com).

0
 

Expert Comment

by:SpideyMod
ID: 8276002
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question