7 Replies Latest reply on Mar 14, 2008 1:03 AM by Newsgroup_User

    About ExchangeServer2007 and Japanese characters

    karisawa
      After connecting to ExchangeServer2007,
      following the procedure indicated in the manual sample,
      I was able to acquire the calendar event normally.

      However, after creating, all Japanese words appeared garbled.

      Incidently, this character garbling does not occur
      when updating from "Outlook Web Access" under Internet Explorer 6.

      Any advice about the cause or solution of this problem would be welcome.

      [sample code]
      -----------------------------------------------------------------------
      <cfscript>
      sEvent=StructNew();
      sEvent.Subject="件名";
      sEvent.AllDayEvent="yes";
      sEvent.StartTime=createDateTime(2008, 3, 18, 8, 0, 0);
      sEvent.Location="会議室";
      sEvent.RequiredAttendees="";
      sEvent.OptionalAttendees="";
      sEvent.Reminder=5;
      sEvent.Importance="high";
      sEvent.Sensitivity="normal";
      sEvent.message="テスト";
      </cfscript>

      <cfdump var="#sEvent#">

      <cfexchangecalendar action="create"
      username ="ExchangeUser"
      password="ExchangePass"
      server="192.168.0.10"
      ExchangeServerLanguage = "japanese"
      formBasedAuthentication = "no"
      protocol = "https"
      event="#sEvent#"
      result="eventID">
      <cfoutput>UID :#eventID#</cfoutput>

      -----------------------------------------------------------------------

      Thanks in advance for your help.
        • 1. Re: About ExchangeServer2007 and Japanese characters
          Level 7
          karisawa wrote:
          > However, after creating, all Japanese words appeared garbled.

          define "garbled". a bunch of question marks (???) or mojibake? what encoding is
          the ms exchange server using, what encoding is the cf server using (unless you
          changed it, cf defaults to utf-8)? what encoding is your cf page using?


          • 2. Re: About ExchangeServer2007 and Japanese characters
            karisawa Level 1

            Thank you for an immediate answer.

            >define "garbled". a bunch of question marks (???) or mojibake?
            a bunch of question marks(???) is displayed now

            >what encoding is the ms exchange server using,
            I don't change it from installation time.

            >what encoding is the cf server using (unless you changed it,
            >cf defaults to utf-8)?
            sorry,I don't understand its setting method,
            Therefore I do not change encoding.
            (only JVM encoding is "MS932" ,that I was able to understand me)

            >what encoding is your cf page using?
            I tried "utf-8" and "S-JIS",but Its result was the same thing.

            Thanks in advance for your help.
            • 3. Re: About ExchangeServer2007 and Japanese characters
              Level 7
              karisawa wrote:
              > a bunch of question marks(???) is displayed now

              ok that's bad, that means the data is garbaged by a serious/fatal encoding error.

              > >what encoding is the ms exchange server using,
              > I don't change it from installation time.

              and that was?

              > Therefore I do not change encoding.

              so the cf server's still utf-8.

              > (only JVM encoding is "MS932" ,that I was able to understand me)

              did you change the encoding or is the cf/exchange server OS japanese?

              > >what encoding is your cf page using?
              > I tried "utf-8" and "S-JIS",but Its result was the same thing.

              S-JIS? is that shift_jis?

              ok, what you need to do is find out the encoding for the exchange server (or the
              exchange app itself) & the find out the encoding for the cf server (i guess the
              easiest way is to find the neo-runtime.xml file in cf_install\lib dir & see what
              the "defaultCharset" is set to).
              • 4. Re: About ExchangeServer2007 and Japanese characters
                karisawa Level 1
                Sorry for the delay.

                I re-installed ExchangeServer2007 and ColdFusion8,
                checked once again the items you suggested,
                but that did not resolve the "???" display problem.

                > did you change the encoding or is the cf/exchange server OS japanese?

                We are using a Japanese OS.
                Environment is as follows :

                - Exchange Machine
                OS:Windows Server 2003 x64 SP2 Japanese
                ExchangeServer 2007 SP1
                .Net2.0 Japanese LanguagePack SP1
                PowerShell 1.0 MUI Japanese

                - ExchangeServer Machine
                OS:WindowsXP SP2 Japanese
                ColdFusion 8 Developer
                (Hotfix3 applied, Japanese language)
                Web Server : IIS

                >(i guess the easiest way is to find the neo-runtime.xml
                > file in cf_install\lib dir & see what the "defaultCharset" is set to)

                I verified that it is set to utf-8.
                ExchangeUser is set to Japanese language.

                Is there any other cause you can think of ?
                • 5. Re: About ExchangeServer2007 and Japanese characters
                  Level 7
                  karisawa wrote:
                  > - Exchange Machine
                  > OS:Windows Server 2003 x64 SP2 Japanese
                  > ExchangeServer 2007 SP1
                  > .Net2.0 Japanese LanguagePack SP1
                  > PowerShell 1.0 MUI Japanese

                  and what encoding does the exchange on this box use?

                  > Is there any other cause you can think of ?

                  there's only one cause, encoding mismatch. if the cf box is utf-8, find out what
                  encoding the exchange box is using. make them both match.
                  • 6. Re: About ExchangeServer2007 and Japanese characters
                    karisawa Level 1
                    >there's only one cause, encoding mismatch. if the cf box is utf-8, find
                    >out what
                    >encoding the exchange box is using. make them both match.
                    The exchange box is utf-8.

                    Inspecting the transmission contents with "Fiddler"
                    showed that the message coming out of CF8
                    is already changed to "???".

                    <defaultCharset> in neo-runtime.xml is set to utf-8

                    CF8server is a clean environment, with nothing else installed.

                    OS:WindowsXP SP2 Japanese
                    ColdFusion 8 Developer
                    (Hotfix3 applied, Japanese language)
                    Web Server : IIS
                    .Net2.0 Japanese LanguagePack SP1
                    Fiddler2

                    I can't think of anything else.
                    If there is any other software or setting required for CF8,
                    please be so kind and tell me.
                    • 7. Re: About ExchangeServer2007 and Japanese characters
                      Level 7
                      karisawa wrote:
                      > Inspecting the transmission contents with "Fiddler"
                      > showed that the message coming out of CF8
                      > is already changed to "???".

                      doesn't mean it wasn't garbaged coming in. are you doing anything to the data
                      before inserting into exchange from cf (ie are you sure it's going in ok?) or
                      after when you pull it out (ie before you display it)?

                      > If there is any other software or setting required for CF8,
                      > please be so kind and tell me.

                      i guess you better post your code (though the only place i can see anything
                      about encoding is the cfExchangeConnection & that i think only effects localized
                      dir, etc. names).

                      i don't see any outstanding exchange bugs or really anything related. though i'm
                      still not sure about the japanese OS, just wondering if that's forcing some
                      encoding of it's own, my newsreader's chopped off most of this thread, have you
                      tried any of the japanese page encodings?.