News for hackers. Stuff that matters.
Re:Make JDK source code UTF-8 by hddqsb on Wednesday March 01, 2023 @08:36AM (#34982206)
Good points.

> Your code is probably saved in UTF-8 right now even if you don't use non-ASCII characters.

Nit: For a document that only contains ASCII characters, UTF-8 is identical to ASCII. So calling it UTF-8 is technically correct but misleading -- you could equally well say it's encoded in any of the other supersets of ASCII.

Re:Make JDK source code UTF-8 by jraph on Wednesday March 01, 2023 @09:16AM (#34982615)
Indeed. I had that in mind when writing my comment, but it's good that you made this part explicit.

You'd better have your editor / tools set to use UTF-8 though in case some non-ascii characters end up in your file or else you might be in for some pain.