This is completely not critical at all. If you are here, and have literally anything important to do, leave now and go do it. Don’t waste your time on this question.
OK. To those who remain:
We’re attempting to make variable names in our Java code out of unicode characters (because reasons).
I was under the impression javac does support unicode in source files, but we’re getting errors on build:
error: illegal character: '\u02dc'
This stackoverflow post makes me think that there’s a flag we need to add to the javac calls that are actually building the source. However, my gradle skills are not good enough to know where this would need to be injected. So two questions:
Anyone know for sure if that -encoding flag is the secret sauce to making javac happy?
Anyone know the best-practice way to add the flag to the FRC gradle build?
In my head I had mentally mapped ☃ and 😊 to be in the same category as a, x, and y, but upon further consideration I realized I have no real justification for that.
Say what you want about kids these days, but I think it’s hard to defend that is part of anyone’s native written language.
Regardless, there’s still this “letters and digits” thing that I can’t quite seem to nail down from online investigation. So, since java conveniently provides an API to detect if a particular character is allowed inside of (or as the start of) an identifier, I thought, why not just dump a handy table?
Which produces the following results:unicodeTest.txt (2.0 MB)
After perusing the list - I am genuinely impressed by what characters Java does support, but it’s missing some critical ones. Namely the fun ones. We’ll have to find some other way to fulfill FIRST’s Core Value of “fun”.