-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when tracing an unicode character (codepoints > 0xFFFF) #54
Comments
The relevant code in vscode-swf-debug is here: |
I spent a little time debugging. I confirmed that I can successfully display unicode characters in the debug console, if I hard-code them in the Java code. The value of |
I've determined that when the Java debugger code reads the bytes received from AIR, it seems to be getting Then, I discovered this: trace(String.fromCharCode(0x1F60A).charCodeAt(0).toString(16)); // f60a |
trace(String.fromCharCode(0x1F60A).charCodeAt(0).toString(16), String.fromCharCode(0x1F60A).length); AIR 32.0.0.116 output: In AIR 50.2.4.5+:
and we have to wait for AIR 52 to use |
But I guess
output |
More test: AIR 32: X.File.fromString("😊", X.File.applicationDirectory.resolvePath("testUTF16.air32.txt")); AIR 51: X.File.fromString("😊", X.File.applicationDirectory.resolvePath("testUTF16.air51.txt")); Comparing the output file, I can see the same character. So I think the compiler has been encoded the character correctly. |
Hi @joshtynjala I finally found out an useful info. Using Adobe Scout I got this trace output for Copying the last line to VSCode: I saw the original smiley: This means the |
Hi!
Please view this issue.
I thought it's a vscode issue but if it's ok with other languages then it could be an as3mxml extension issue or a compiler/runtime issue?
I don't understand how as3mxml connecting trace statements to the vscode's debug console so I cannot determine where the problem is.
Please help!
Thank you!
The text was updated successfully, but these errors were encountered: