2021-07-30

How do I get a unicode character from an id in a variable?

I'm attempting to go and generate a file with every Unicode variable. I have been able to get unicode up to U+FFFF, however I need to get it up to U+231F4. I've tried searching for answers, but none of them work when the symbol id is in a variable instead of just typed.

Right now, I have this:

for (int i = 0; i < 143860; i++) {
            System.out.println((char)i);
        }

Instead of going up to U+231F4, it instead goes up to U+FFFF, and loops in the document it is printing to. How do I make it go to higher Unicode IDs?



from Recent Questions - Stack Overflow https://ift.tt/2VlKHb7
https://ift.tt/eA8V8J

No comments:

Post a Comment