ide, i18n, allow some ascii chars to be un-encoded in result string

git-svn-id: trunk@15441 -
This commit is contained in:
jesus 2008-06-16 19:32:31 +00:00
parent 1ebd38a998
commit ebdec7f951

View File

@ -149,7 +149,7 @@ var
// and re-encode back the rest
while Ustr<>'' do begin
j := UTF8CharacterLength(pchar(Ustr));
if j=1 then
if (j=1) and (Ustr[1] in [#0..#31,#128..#255]) then
Value := Value + '#'+IntToStr(ord(Ustr[1]))
else
Value := Value + copy(Ustr, 1, j);