facebook

format JavaScript code has some problem!

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #249886 Reply

    ilin0716
    Member

    Dears:

    I using myeclipse to edit JavaScript, when I using “Ctrl + Shift + F” to format JavaScript code,

    Chinese characters will be transforming to escape characters, ex: alert (“\u5206\u884c\u6bb5\u7b2c\u4e00\u7ad9”);

    Chinese characters shouldn’t be replaced!!!

    Its big problem for me, have anybody know how to solve it~~

    Appreciate for any feedback and suggestion~

    ilin ^___^

    #249922 Reply

    Riyad Kalla
    Member

    Can you send an example javascript file to support@genuitec.com ATTN Riyad with a link to this thread so I know why I’m getting the file. I’ll file this bug.

    #249965 Reply

    ilin0716
    Member

    Hi Riyad , I sent the file for you ~~
    Thanks for your help~

    #249982 Reply

    ilin0716
    Member

    var chineseword=”中文字測試”;

    function showChinese(){
    var chineseword2 = “中文字測試2”;
    alert(chineseword);
    alert(chineseword2);
    alert(“中文字測試2”);
    }

    #249992 Reply

    Riyad Kalla
    Member

    ilin,
    I got your file and reproduced the problem right away, thank you for the test case. I’ll file it as a bug.

    #250686 Reply

    iioouu
    Member

    hey,man. has the bug fixed now? thank you

    #250687 Reply

    Riyad Kalla
    Member

    According to the issue tracker not yet.

    #251908 Reply

    tom.huang
    Member

    Hi all,I have the problem too.

    I thinking the formatter read the javascript file(I set charset GBK) with the correct charset,then format(problem here),then write the file with the right charset,is that?

    waiting~

    #251909 Reply

    tom.huang
    Member

    hope for setting support

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: format JavaScript code has some problem!

You must be logged in to post in the forum log in