Try to fix broken characters in SHOW CREATE TABLE result by using UTF8StringToWideString(). Fixes issue #1328.

This commit is contained in:
Ansgar Becker
2009-10-28 01:16:29 +00:00
parent aa6e1702fb
commit 8354c106ca
5 changed files with 14 additions and 8 deletions

View File

@ -2051,7 +2051,7 @@ begin
if Size > 0 then
begin
P := Pointer(Result);
Q := @Buf;
//Q := @Buf;
For I := 0 to Size - 1 do
begin
P^ := Q^;
@ -2166,7 +2166,7 @@ var I : AnsiChar;
begin
if Ch = #$FFFF then
raise EConvertError.CreateFmt(SCannotConvert, [Ord(Ch), Encoding]);
P := @Map;
//P := @Map;
for I := #$00 to #$FF do
if P^ <> Ch then
Inc(P)
@ -2193,7 +2193,7 @@ begin
end;
if Ch = #$FFFF then
raise EConvertError.CreateFmt(SCannotConvert, [Ord(Ch), Encoding]);
P := @Map;
//P := @Map;
for I := #$80 to #$FF do
if P^ <> Ch then
Inc(P)
@ -2220,7 +2220,7 @@ begin
end;
if Ch = #$FFFF then
raise EConvertError.CreateFmt(SCannotConvert, [Ord(Ch), Encoding]);
P := @Map;
//P := @Map;
for I := #$A0 to #$FF do
if P^ <> Ch then
Inc(P)