«class utf8» Broken in Tiger?

Hi!
I’m wondering whether the utf8 work-around «class utf8» is broken in Tiger?
Since Tiger Xcode doesn’t compile «class utf8» properly! (it says error while compiling: “Expected expression but found unknown token. (-2741)”)
Did utf8 get a new real name in Applescript Studio or what?
In Script Editor it still works very well!

Vince

I know than Tiger not has a Unicode Text option:

set theText to "Some New Text" as Unicode text

Although I have failed to find which dictionary contains this so I do know if it has options such as utf8 or utf16.

Hope this helps,
jON bEEBE

What’s the script window’s File Encoding set to? If it’s set to something like UTF-8 then the non-ASCII « » characters will be wrongly encoded when sent to the AppleScript compiler. Change it to MacRoman and you shouldn’t have any problem.

I haven’t changed any encoding setting at all - since I even don’t know how to define the encoding :confused:

In Script Editor it works fine - But in Xcode it fails

In Xcode I have the following settings:
Line Encodings:
¢ For new files: Unix (LF)
¢ For existing files: Preserve

Default File Encoding: System default (Western (Mac OS Roman))

All these settings are the defaults when installing Xcode 2 on a clean Tiger

But why are all my source code files in Xcode encoded with utf8 if this causes the compiler to fail?

Thanx so far
Vince

Ps:
Maybe this is important:
I started my project (and so created the files) in Xcode 1 under Panther

“as Unicode text” is UTF-16
as Applescript doesn’t have a utf8 class you have to use «class utf8»

Details here:
http://www.satimage.fr/software/en/unicode_and_applescript.html