2001-03-16 14:03:04 +01:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Multibyte library header ( psqlODBC Only )
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* PostgreSQL client encoding */
|
2001-03-27 06:00:55 +02:00
|
|
|
#define SQL_ASCII 0 /* SQL/ASCII */
|
|
|
|
#define EUC_JP 1 /* EUC for Japanese */
|
|
|
|
#define EUC_CN 2 /* EUC for Chinese */
|
|
|
|
#define EUC_KR 3 /* EUC for Korean */
|
|
|
|
#define EUC_TW 4 /* EUC for Taiwan */
|
|
|
|
#define UNICODE 5 /* Unicode UTF-8 */
|
|
|
|
#define MULE_INTERNAL 6 /* Mule internal code */
|
|
|
|
#define LATIN1 7 /* ISO-8859 Latin 1 */
|
|
|
|
#define LATIN2 8 /* ISO-8859 Latin 2 */
|
|
|
|
#define LATIN3 9 /* ISO-8859 Latin 3 */
|
|
|
|
#define LATIN4 10 /* ISO-8859 Latin 4 */
|
|
|
|
#define LATIN5 11 /* ISO-8859 Latin 5 */
|
|
|
|
#define LATIN6 12 /* ISO-8859 Latin 6 */
|
|
|
|
#define LATIN7 13 /* ISO-8859 Latin 7 */
|
|
|
|
#define LATIN8 14 /* ISO-8859 Latin 8 */
|
|
|
|
#define LATIN9 15 /* ISO-8859 Latin 9 */
|
2001-05-03 23:38:45 +02:00
|
|
|
#define KOI8 16 /* KOI8-R/U */
|
2001-03-27 06:00:55 +02:00
|
|
|
#define WIN 17 /* windows-1251 */
|
|
|
|
#define ALT 18 /* Alternativny Variant (MS-DOS CP866) */
|
|
|
|
#define SJIS 32 /* Shift JIS */
|
|
|
|
#define BIG5 33 /* Big5 */
|
|
|
|
#define WIN1250 34 /* windows-1250 */
|
2001-03-16 14:03:04 +01:00
|
|
|
|
|
|
|
|
2001-03-22 05:01:46 +01:00
|
|
|
extern int multibyte_client_encoding; /* Multibyte client encoding. */
|
|
|
|
extern int multibyte_status; /* Multibyte charcter status. */
|
2001-03-16 14:03:04 +01:00
|
|
|
|
2001-03-22 05:01:46 +01:00
|
|
|
void multibyte_init(void);
|
2001-03-16 14:03:04 +01:00
|
|
|
unsigned char *check_client_encoding(unsigned char *str);
|
2001-03-22 05:01:46 +01:00
|
|
|
int multibyte_char_check(unsigned char s);
|
2001-03-16 14:03:04 +01:00
|
|
|
unsigned char *multibyte_strchr(unsigned char *s, unsigned char c);
|