encoding_charset.js 686 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. 'use strict';
  2. // inverse of charset_encodings
  3. // given encoding, get matching mysql charset number
  4. module.exports = {
  5. big5: 1,
  6. latin2: 2,
  7. dec8: 3,
  8. cp850: 4,
  9. latin1: 5,
  10. hp8: 6,
  11. koi8r: 7,
  12. swe7: 10,
  13. ascii: 11,
  14. eucjp: 12,
  15. sjis: 13,
  16. cp1251: 14,
  17. hebrew: 16,
  18. tis620: 18,
  19. euckr: 19,
  20. latin7: 20,
  21. koi8u: 22,
  22. gb2312: 24,
  23. greek: 25,
  24. cp1250: 26,
  25. gbk: 28,
  26. cp1257: 29,
  27. latin5: 30,
  28. armscii8: 32,
  29. cesu8: 33,
  30. ucs2: 35,
  31. cp866: 36,
  32. keybcs2: 37,
  33. macintosh: 38,
  34. macroman: 39,
  35. cp852: 40,
  36. utf8: 45,
  37. utf8mb4: 45,
  38. utf16: 54,
  39. utf16le: 56,
  40. cp1256: 57,
  41. utf32: 60,
  42. binary: 63,
  43. geostd8: 92,
  44. cp932: 95,
  45. eucjpms: 97,
  46. gb18030: 248
  47. };