我正在为一个解释正确的 unicode 转义的类编写 Javadoc:
* String unitAbbrev = "μs"; //Best: perfectly clear even without a comment.
* String unitAbbrev = "\u03bcs"; //Poor: the reader has no idea what this is.
不幸的是,它们都用“μs”渲染:
有什么办法可以逃脱这个 unicode 转义?
双反斜杠 ( "\\u03bcs"
) 不起作用: