Jump to content

Special characters in text


whizzkid
 Share

Recommended Posts

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!

 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...