Solved

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

Posted on 2001-09-17
2
465 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now