whizzkid Posted April 10, 2014 Share Posted April 10, 2014 Hello,I'm rendering texts out of a database, and they use special characters.like é and ë Can anyone tell me how to get pixi to render these special characters? Here you can see the output I get:var stage = new PIXI.Stage(0x333355);var renderer = PIXI.autoDetectRenderer(400, 300);document.body.appendChild(renderer.view);var text = new PIXI.Text("eacute : é eUmlaut: ë", {font:"20px Arial", fill:"white"});stage.addChild(text)renderer.render(stage); thanks! Quote Link to comment Share on other sites More sharing options...
Leth Posted April 16, 2014 Share Posted April 16, 2014 Hello, It works perfectly for me even with some funny special chars: http://jsfiddle.net/92uRa/Do you have set the encoding of your html page on the head ? <meta charset="utf-8" /> Quote Link to comment Share on other sites More sharing options...
whizzkid Posted April 17, 2014 Author Share Posted April 17, 2014 Hm indeed it works. I see now that the text I pasted here, copied back again has a different character in place than the one I copied from my datafile (which contains the texts)So my own example works for me now, once I copied it back from this webpage how nice. Ok, so something is wonky in my data and pixi can display the characters correctly, thats good to know. I should be able to fix that when I get the actual text from our database instead of an export file (which I'm using right now) thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.