Rev 6894 | Rev 7007 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6894 | Rev 7005 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | #include "koi8_ru.h" |
45 | #include "koi8_ru.h" |
46 | #include "iso8859_5.h" |
46 | #include "iso8859_5.h" |
47 | #include "utf8.h" |
47 | #include "utf8.h" |
Line 48... | Line 48... | ||
48 | 48 | ||
- | 49 | ||
- | 50 | int encoding(char *what) { |
|
- | 51 | ||
- | 52 | /* Ignore //TRANSLIT or //IGNORE for now. */ |
|
- | 53 | int i; |
|
- | 54 | for(i = 0; i < strlen(what); i++) { |
|
- | 55 | if(what[i] == '/') { |
|
- | 56 | what[i] = '\0'; |
|
- | 57 | break; |
|
Line 49... | Line 58... | ||
49 | 58 | } |
|
50 | int encoding(const char *what) { |
59 | } |
51 | 60 | ||
52 | if (!strcmp(what,"CP866")) return CP866; |
61 | if (!strcmp(what,"CP866")) return CP866; |