mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-25 17:08:39 +00:00
use escape codes here for non-unicode editors
This commit is contained in:
@@ -536,7 +536,7 @@ func CheckByteLayout(fail func(string, ...interface{})) {
|
|||||||
// test 6b: CreateString unicode
|
// test 6b: CreateString unicode
|
||||||
|
|
||||||
b = flatbuffers.NewBuilder(0)
|
b = flatbuffers.NewBuilder(0)
|
||||||
b.CreateString("日本語")
|
b.CreateString("\u65e5\u672c\u8a9e") // chinese from blog.golang.org/strings
|
||||||
check([]byte{9, 0, 0, 0, 230, 151, 165, 230, 156, 172, 232, 170, 158, 0, // null-terminated, 2-byte pad
|
check([]byte{9, 0, 0, 0, 230, 151, 165, 230, 156, 172, 232, 170, 158, 0, // null-terminated, 2-byte pad
|
||||||
0, 0})
|
0, 0})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user