From: Darren Cook (darren_at_[hidden])
Date: 2003-12-12 17:39:22


> character... ). So I thinks I have to parse bytes by pair and try to identify
> them as Shift-JIS when it is the case. Any idea of a function or program that
> does it?

The O'Reilly CJKV book is very helpful. Chapter 9 contains algorithms for
encoding detection. You can get example code here:
   http://examples.oreilly.com/cjkvinfo/src/jcode.c

(see the DetectCodeType() function).

Darren