# Crazy bugs with japanese text!

**URL:** https://forum.kirupa.com/t/crazy-bugs-with-japanese-text/263560
**Category:** Uncategorized
**Created:** [June 17, 2008, 7:29am UTC](https://forum.kirupa.com/t/crazy-bugs-with-japanese-text/263560 "2008-06-17T07:29:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JoelFinnstrom](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@JoelFinnstrom](https://forum.kirupa.com/u/JoelFinnstrom)
#### Post date: [June 17, 2008, 7:29am UTC](https://forum.kirupa.com/t/crazy-bugs-with-japanese-text/263560/1 "2008-06-17T07:29:31Z")

</div>

Hello everybody!

Has anyone here worked with japanese text? More specific, working with embedding Arial Unicode MS and using it for japanese in textblocks? We can’t get this to work and we’re going nuts!

What you see below is the code we’re using, to me this looks OK but it doesn’t show up anything in the textfield(“theText”) and when we trace the text all I get is “”. And another thing is that if I trace the length of the textfield a get a correct value, 9 that is…

I guess that I’m just asking for someone to take a look att this and see if we’ve missed something!

```php

var arial14:TextFormat = new TextFormat();
    arial14.font = "a14"; //this font is embedded in the library
    arial14.size = 14;
    arial14.color = 0x333333;
    
    theText.embedFonts = true;
theText.htmlText = "";
theText.html = true;

theText.htmlText = "&#36605;&#37327;&#21270;&#12373;&#12428;&#12414;&#12375;&#12383;&#12290;"

trace("text: "+theText.text);
    
    theText.setNewTextFormat(arial14);
    
    var my_fmt:TextFormat = theText.getNewTextFormat();

    for (var prop in my_fmt) {
        trace(prop+": "+my_fmt[prop]);
    }

     
theText

```
