@@ -728,7 +728,7 @@ json_lex_string(JsonLexContext *lex)
728728ereport (ERROR ,
729729 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
730730errmsg ("invalid input syntax for type json" ),
731- errdetail ("highorder surrogate must not follow a high order surrogate." ),
731+ errdetail ("Unicode high surrogate must not follow a high surrogate." ),
732732report_json_context (lex )));
733733hi_surrogate = (ch & 0x3ff ) <<10 ;
734734continue ;
@@ -739,7 +739,7 @@ json_lex_string(JsonLexContext *lex)
739739ereport (ERROR ,
740740 (errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
741741errmsg ("invalid input syntax for type json" ),
742- errdetail ("loworder surrogate must follow a high order surrogate." ),
742+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
743743report_json_context (lex )));
744744ch = 0x10000 + hi_surrogate + (ch & 0x3ff );
745745hi_surrogate = -1 ;
@@ -749,7 +749,7 @@ json_lex_string(JsonLexContext *lex)
749749ereport (ERROR ,
750750(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
751751errmsg ("invalid input syntax for type json" ),
752- errdetail ("loworder surrogate must follow a high order surrogate." ),
752+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
753753report_json_context (lex )));
754754
755755/*
@@ -783,7 +783,7 @@ json_lex_string(JsonLexContext *lex)
783783ereport (ERROR ,
784784(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
785785errmsg ("invalid input syntax for type json" ),
786- errdetail ("Unicode escape for codepoints higher than U+ 007Fnot permitted in non-UTF8 encoding" ),
786+ errdetail ("Unicode escapevalues cannot be used for codepoint values above 007Fwhen the server encoding is not UTF8. " ),
787787report_json_context (lex )));
788788}
789789
@@ -795,7 +795,7 @@ json_lex_string(JsonLexContext *lex)
795795ereport (ERROR ,
796796(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
797797errmsg ("invalid input syntax for type json" ),
798- errdetail ("loworder surrogate must follow a high order surrogate." ),
798+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
799799report_json_context (lex )));
800800
801801switch (* s )
@@ -856,7 +856,7 @@ json_lex_string(JsonLexContext *lex)
856856ereport (ERROR ,
857857(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
858858errmsg ("invalid input syntax for type json" ),
859- errdetail ("loworder surrogate must follow a high order surrogate." ),
859+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
860860report_json_context (lex )));
861861
862862appendStringInfoChar (lex -> strval ,* s );
@@ -868,7 +868,7 @@ json_lex_string(JsonLexContext *lex)
868868ereport (ERROR ,
869869(errcode (ERRCODE_INVALID_TEXT_REPRESENTATION ),
870870errmsg ("invalid input syntax for type json" ),
871- errdetail ("loworder surrogate must follow a high order surrogate." ),
871+ errdetail ("Unicode low surrogate must follow a high surrogate." ),
872872report_json_context (lex )));
873873
874874/* Hooray, we found the end of the string! */