8356978: Convert unicode sequences in Java source code to UTF-8

Co-authored-by: Alexey Ivanov <aivanov@openjdk.org>
Reviewed-by: naoto, prr, joehw
This commit is contained in:
Magnus Ihse Bursie 2025-06-09 17:58:49 +00:00
parent a377773fa7
commit 156187accc
3 changed files with 13 additions and 17 deletions

View File

@ -187,22 +187,18 @@ public class HelloWorld {
new Run("none", "Hello from Cupertino") new Run("none", "Hello from Cupertino")
}), }),
new Paragraph("title", new Run[] { new Paragraph("title", new Run[] {
new Run("none", "\u53F0\u5317\u554F\u5019\u60A8\u0021") new Run("none", "台北問候您!")
}), }),
new Paragraph("title", new Run[] { new Paragraph("title", new Run[] {
new Run("none", "\u0391\u03B8\u03B7\u03BD\u03B1\u03B9\u0020" // Greek new Run("none", "Αθηναι ασπαζονται υμας!") // Greek
+ "\u03B1\u03C3\u03C0\u03B1\u03B6\u03BF\u03BD"
+ "\u03C4\u03B1\u03B9\u0020\u03C5\u03BC\u03B1"
+ "\u03C2\u0021")
}), }),
new Paragraph("title", new Run[] { new Paragraph("title", new Run[] {
new Run("none", "\u6771\u4eac\u304b\u3089\u4eca\u65e5\u306f") new Run("none", "東京から今日は")
}), }),
new Paragraph("title", new Run[] { new Paragraph("title", new Run[] {
new Run("none", "\u05e9\u05dc\u05d5\u05dd \u05de\u05d9\u05e8\u05d5" new Run("none", "שלום מירושלים")
+ "\u05e9\u05dc\u05d9\u05dd")
}), }),
new Paragraph("title", new Run[] { new Paragraph("title", new Run[] {
new Run("none", "\u0633\u0644\u0627\u0645") new Run("none", "سلام")
}), }; }), };
} }

View File

@ -232,8 +232,8 @@ public class JavaTimeSupplementary extends OpenListResourceBundle {
"Sha.", "Sha.",
"Ram.", "Ram.",
"Shaw.", "Shaw.",
"Dhu\u02bbl-Q.", "Dhuʻl-Q.",
"Dhu\u02bbl-H.", "Dhuʻl-H.",
"", "",
} }
}, },
@ -241,16 +241,16 @@ public class JavaTimeSupplementary extends OpenListResourceBundle {
new String[] { new String[] {
"Muharram", "Muharram",
"Safar", "Safar",
"Rabi\u02bb I", "Rabiʻ I",
"Rabi\u02bb II", "Rabiʻ II",
"Jumada I", "Jumada I",
"Jumada II", "Jumada II",
"Rajab", "Rajab",
"Sha\u02bbban", "Shaʻban",
"Ramadan", "Ramadan",
"Shawwal", "Shawwal",
"Dhu\u02bbl-Qi\u02bbdah", "Dhuʻl-Qiʻdah",
"Dhu\u02bbl-Hijjah", "Dhuʻl-Hijjah",
"", "",
} }
}, },

View File

@ -87,7 +87,7 @@ public class FormatData_ja extends ParallelListResourceBundle {
return new Object[][] { return new Object[][] {
{ "japanese.FirstYear", { "japanese.FirstYear",
new String[] { // first year name new String[] { // first year name
"\u5143", // "Gan"-nen "", // "Gan"-nen
} }
}, },
}; };