fix unicode escaping for rtf file (#3609)

Signed-off-by: C1emency <>
Signed-off-by: clkue <clemens_kuennemann@protonmail.com>
This commit is contained in:
clkue
2025-03-03 14:55:09 +01:00
committed by GitHub
parent ae1b5fc925
commit 3aa627a467
2 changed files with 6 additions and 4 deletions

View File

@@ -76,8 +76,10 @@ public class ReadmeGenerator {
input.chars().forEachOrdered(c -> {
if (c < 128) {
sb.append((char) c);
} else if (c <= 0xFF) {
sb.append("\\'").append(String.format("%02X", c));
} else if (c < 0xFFFF) {
sb.append("\\u").append(c);
sb.append("\\uc1\\u").append(c);
}
});
}