If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
![List of issues](/flash/images/issue_list.png)
#2083 Cannot output text with specified Vietnamese characters/letters
Author:
Intelparcel11
![user user](/flash/images/user.png)
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: CharsetFonts
State: closed ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
> What steps will reproduce the problem?
When open JPEXS, editing in text section, if you typing in words contains Vietnamese tone
mark or circumflex and then save, the word will be output as "?"
> What is the expected output? What do you see instead?
Expected: Mả / Mạ / Ă / Lăn / Lắn / Lằn / Lẳn / Lẵn / Lặn / Lấn / Lần
/ Lẩn / Lẫn / Lận
Result: M? / M? / ? / L?n / L?n / L?n / L?n / L?n / L?n / L?n / L?n / L?n / L?n / L?n
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
Version 18.5.0, Stable, Windows 10
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
Only words with question and heavy tone outputed as "?". However, combining words with
both circumflex and tone mark(any) will all output as "?"
![Download](/flash/images/disk.png)
![Download](/flash/images/disk.png)
![Download](/flash/images/disk.png)
![Download](/flash/images/disk.png)
This might be caused by lower SWF version - older SWFs have specific charset which needs
to be set first.
Also, you need to embed characters into font to use them.
Could you please attach your SWF file? I can then investigate where is the problem.
The vietnamese characters worked for me on my sample swf.
![Download](/flash/images/disk.png)
You're right, maybe my swf file is old, here's the file
Also is there anyway to convert this old thing to the new version?
![Download](/flash/images/disk.png)
This is what you need to do:
1) Go to SWF->header, hit Edit button on the bottom. Change SWF Version from 5 to 6. Hit
Save button on the bottom.
2) Save the file (you can use save as to save as another file) and then hit Reload toolbar
action to properly change charset.
3) For all fonts which have DefineFontInfo underneath them, select the DefineFontInfo,
Edit it and make sure fontFlagsShiftJIS flag is set to "false".
4) For all fonts which you want to use Vietnamese characters, you need to add the
characters first. Select your font (DefineFont) and then on the right bottom, there is
"Add characters" input box with "Source font" dropdown list. Enter desired Vietnamese
characters there, set Source font and hit OK button. Alternatively, you can use Embed
button which will allow you to import whole sets of characters.
5) From now on, you can use Vietnamese characters in your DefineTexts
State: new→opened
Type: bug→question
Type: bug→question
Thank you! Your instruction is short and clear. Now i can input those characters.
However, in step 4 you said that i can use Embed font to import sets of character, i
looked on it and saw no line contains Vietnamse font, so i had to input those Vietnamese
characters manually, am i missing something?
Vietnamese should be part of "Latin extended Add'l" set I think.
Yup, that's it. Thanks for helping me!
You're welcome!
State: opened→closed