Skip to main content
added 260 characters in body
Source Link
Grimmy
  • 15.8k
  • 1
  • 34
  • 64

05AB1E, 37 34 bytes

93ÝãDžy+∞x64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online! or validate all test cases.

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 37 34 bytes

93ÝãDžy+∞x64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 37 34 bytes

93ÝãDžy+∞x64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online! or validate all test cases.

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

added 38 characters in body
Source Link
Grimmy
  • 15.8k
  • 1
  • 34
  • 64

05AB1E, 3637 34 bytes

93ÝãDžy+47Lx64&+₃+Ƶ₁L64K30+â93ÝãDžy+∞x64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online!Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 36 bytes

93ÝãDžy+47Lx64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 37 34 bytes

93ÝãDžy+∞x64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

added 38 characters in body
Source Link
Grimmy
  • 15.8k
  • 1
  • 34
  • 64

05AB1E, 3736 bytes

94Lã32+Džy+47Lx64&+žy+Ƶ₁L64K63+â93ÝãDžy+47Lx64&+₃+Ƶ₁L64K30+â)Iè`‡33+Iè`‡

Try it online!Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 37 bytes

94Lã32+Džy+47Lx64&+žy+Ƶ₁L64K63+â)Iè`‡

Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

05AB1E, 36 bytes

93ÝãDžy+47Lx64&+₃+Ƶ₁L64K30+â)33+Iè`‡

Try it online!

First input is [source encoding, destination encoding], with 0 representing JIS, 1 for EUC, and 2 for ShiftJIS.

Second input it [byte pair].

Source Link
Grimmy
  • 15.8k
  • 1
  • 34
  • 64
Loading