fix richText utf8 error
Merge pull request #7499 from andyque/fixRichTextUTF8

fix richText utf8 error