1 Reply Latest reply on Sep 13, 2010 2:14 PM by Belton

    Shift JIS encoding

    Belton

      Title

      Shift JIS encoding

      Post

      I need to encode a text field or variable to Shift JIS in order to submit a url via a webviewer.

      FileMaker can import export and sort by ShiftJIS but I can't find any way to encode to it or calculate it. I need a hexadecimal code in the form %12%34 for each character.
      Leaving the characters unencoded doesn't work. Encode as url doesn't work either as that just encodes the unicode characters.

      Before I start into trying to build a code lookup table in FM, does anyone have any ideas or pointers?

      FM10Adv
      Mac OS 10.5.8
      Intermediate knowledge.

        • 1. Re: Shift JIS encoding
          Belton

          I've partially solved my problem.
          I'll post it here in case it's of interest to anyone else.

          using 360Work's ScriptMaster plugin the very simple
          URLEncoder.encode(text, "shift_jis");

          does the trick. Presumably it would also work for other encodings.

          I then need to bypass FileMaker's url encoding using 360's Get url as Text. However I  have to correct the relative urls in this text.

          If anyone has a better method of bypassing FileMaker's url encoding when setting the webviewer I'd be interested.