Corona crash with native.newTextBox containing non english text

Hi all,

I’m using the native.newTextBox in my app with this code:

local textBox = native.newTextBox( display.viewableContentWidth/2 - 90, display.viewableContentHeight/2 - 90, 180, 180 )  
 textBox.font = native.newFont( "Helvetica-Bold", 18 )  
 textBox.text = contents  
 textBox.isEditable = no  
 textBox.align = "center"  
 textBox.hasBackground = false  

Everything work very well and I have exactly what I need in my app if the text contained is in english:

contents = "The lime tree is a tree that can reach a height of 40 meters and a diameter of 2 meters."  

But if the text in the contents of textbox is not english, or it does contain extended chars:

contents = "Kalken träd är ett träd som kan nå en höjd av 40 meter och en diameter på 2 meter."  

Corona dramatically crash with this message:

Corona Simulator[9376:903] *** -[Rtt_NSTextView replaceCharactersInRange:withString:]: nil NSString given.

…End of the game!

Any suggestions ?

Thanks in advance
Ale
[import]uid: 30847 topic_id: 25525 reply_id: 325525[/import]