It's all about the answers!

Ask a question

error load java script file with Chinese character

Lionel Li (23111216) | asked Jan 04 '13, 4:36 p.m.
in attribute customization, when trying to add java script for e.g. script based calculated value or script based value set.
In configuration when trying to browse to select a javascript file with Chinese character, it shows error.

One answer

permanent link
Lionel Li (23111216) | answered Jan 04 '13, 4:37 p.m.
it seems that the js file has to be saved as UTF-8 encoding if it has any content in Chinese chars. 
here is what i did and found:
- copy and paste the js file into another new file for testing
- removed all the Chinese chars in new file, and saved the file as UTF-8 encoding
- added any Chinese chars after, then Eclipse client didn't complain and was able to complete the Script based customization

Defect is raised:

I believe there will be some tech note published about this issue soon. 

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.