Very strange behaviour with text including some no standard characters
I have very very strange behaviour in flash cs 5.5 air2.7 (iOS compile)
If I make an empty project containing only this code below
var sentences1:Array = [
{contact: 1,geluid: "woord1.mp3", zin: "une fin", vertaal1: "een einde", vertaal2: "een begin", vertaal3: "het is fijn"},
{contact: 1,geluid: "woord2.mp3", zin: "un grand-père", vertaal1: "een grootvader", vertaal2: "een grootmoeder", vertaal3: "een grote man"},
{contact: 1,geluid: "woord3.mp3", zin: "une grand-mère", vertaal1: "een grootmoeder", vertaal2: "een grootvader", vertaal3: "een grote vrouw"},
{contact: 1,geluid: "woord4.mp3", zin: "les grands-parents", vertaal1: "de grootouders", vertaal2: "de ouders", vertaal3: "de familie"},
]trace (sentences1[1].zin);
then this executes completely OK and the trace option gives me the word "un grand-père"
However, if I take the block defining the array
//var sentences1:Array = [
//{contact: 1,geluid: "woord1.mp3", zin: "une fin", vertaal1: "een einde", vertaal2: "een begin", vertaal3: "het is fijn"},
//{contact: 1,geluid: "woord2.mp3", zin: "un grand-père", vertaal1: "een grootvader", vertaal2: "een grootmoeder", vertaal3: "een grote man"},
//{contact: 1,geluid: "woord3.mp3", zin: "une grand-mère", vertaal1: "een grootmoeder", vertaal2: "een grootvader", vertaal3: "een grote vrouw"},
//{contact: 1,geluid: "woord4.mp3", zin: "les grands-parents", vertaal1: "de grootouders", vertaal2: "de ouders", vertaal3: "de familie"},
//]
and put it in file "words.as"
and then execute the code
include "words.as"
trace (sentences1[1].zin);
Then the code nicely finds the array (which is logic), BUT............... it does not display the string ok, it shows instead "un grand-p�re" with the è replaced with a �
So my obvious question is .... does anyone know why flash does this ? I thought INCLUDING was the same as typing the code at that place in the main flash files actionscript section ?
Hopefully somebody knows why this happens. (and how to solve it if possible)
Kind regards,
Bart Libert
