1 Reply Latest reply on Sep 5, 2007 2:27 AM by Greg Dove

    SWFObject 1.5 cannot display chinese character?

    adreny
      hi, anyone know how to fix this problem ?
      the chinese"哈哈哈哈哈” character cannot be display in flash textfield, only can show “111″.
      i download a code javascript from this site http://blog.deconcept.com/swfobject/

      var so = new SWFObject("so_tester.swf", “sotester", “300″, “300″, “7″);
      so.addVariable("flashVarText", “111哈哈哈哈哈");
      so.addVariable("flashVarText1″, “laladadasdaaal");
      so.addParam("wmode","transparent");
      so.write("flashcontent");
        • 1. Re: SWFObject 1.5 cannot display chinese character?
          Greg Dove Level 4
          It might be the same problem as before with ExternalInterface.

          I don't know if the page encoding for the html page will make a difference
          e.g. charset=utf-8

          Otherwise you could just use a similar approach to the answer for your recent question about problems with ExternalInterface -
          perhaps you can use javascript's escape function for encoding:
          so.addVariable("flashVarText", escape(“111哈哈哈哈哈"));

          Or if no-one else has a better answer here, then try the swfobject site to see if someone else has encountered it.