Ask a questionAsk a question
 

Proposed AnswerCan I use this API with Shift-JIS HTML?

  • Friday, July 31, 2009 4:34 PMMISATO301 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello everyone

    I’m asking this question here for my friend Japanese MVP.

    He has his own site which is using the Shift-JIS, and he created HTML to implement the widget.

     

    When he open his site with

    - IE6 or IE 7, then every time a Scripting error appears.

    - IE8, then no scripting error but, some time he gets the error "The Microsoft Translator widget is not registered to this site” error.

     

    Does the Translator API run on the Shift-JIS HTML page with IE6 or IE7?  
    Thank you
    Michiyo

     

    •  

All Replies

  • Monday, August 03, 2009 6:45 PMSandor MauriceMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Could you post the URL to your friend’s site?  The widget should be ok with Shift-JIS although for optimal cross-browser compatibility we highly recommend UTF-8 or some other Unicode variant.  However the errors you describe don’t sound like they’re encoding related.  If we knew exactly what URL he had registered when generating his widget snippet this would be helpful in tracking down the issue.

    Thank you for your feedback.

    Sandor Maurice
    Microsoft Translator Team

     

  • Tuesday, August 11, 2009 12:28 AMMISATO301 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi Sandra

    Thank you for your help and sorry for my slow response.

     

    This is the URL of my friend’s site.

    http://pasofaq.jp/windows/windows77/b-calc.htm

     

    Below is the original code that http://www.microsofttranslator.com/widget generated.


    <script id="MicrosoftTranslatorWidgetScript" type="text/javascript"

    src="http://api.microsofttranslator.com/V1/Widget.svc/Embed?appId=BBSyml1Qzs

    J34tNi1vfxd9h03oUu3TuL&amp;from=ja&amp;layout=ts"></script>

     

    The script error occurred with that, but after he modified it like next, then the error has gone.

     

    <script id="MicrosoftTranslatorWidgetScript" charset="utf-8"

    type="text/javascript"

    src="http://api.microsofttranslator.com/V1/Widget.svc/Embed?appId=BBSyml1Qzs

    J34tNi1vfxd9h03oUu3TuL&amp;from=ja&amp;layout=ts"></script>

     

    So he recommended that to add  <charset="utf-8" > to the  www.microsofttranslator.com generates code.


    Thank you very much.
    Michiyo 

     

  • Friday, August 14, 2009 7:24 PMSandor MauriceMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    That's an excelent suggestion, thank you Michiyo.  I'll see that it gets added.

    Sandor Maurice
    Microsoft Translator Team
  • Wednesday, November 04, 2009 8:42 AMSandor MauriceMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    We have adopted the suggestion and you'll now see it reflected in the widget adoption portal.  Thanks again for the feedback.

    Sandor Maurice
    Microsoft Translator Team