You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. use some non-ASCII word as variable
2. the generated code shows '__' instead of the non-ASCII word
approach:
We can use 'encodeURI' to escape non-ASCII variables to ASCII code
== get ==
from
variableDB_.getName(this.getTitleText(1)
to
variableDB_.getName(encodeURI(this.getTitleText(1))
== set ==
from
variableDB_.getName(this.getTitleText(1)
to
variableDB_.getName(encodeURI(this.getTitleText(1))
Original issue reported on code.google.com by gasolin on 9 Jun 2012 at 6:38
The text was updated successfully, but these errors were encountered:
BTW the ASCII variable will not change after apply this patch.
Note that the generated variable is not exactly the non-ASCII variables, but a
'A1_B3_12' style variable.
Since python(2.x) and other language may not support non-ASCII variables
natively, a 'A1_B3_12' style variable might be the best compromised choice.
Good call. I've added this to names.js so that it applies to all the places
where variables are used, as well as function names. Revision 226. Pushed to
Subversion, and will be in the next production push.
Original comment by neil.fra...@gmail.com on 9 Jun 2012 at 8:06
Original issue reported on code.google.com by
gasolin
on 9 Jun 2012 at 6:38The text was updated successfully, but these errors were encountered: