# German Umlaute with Lazarus

**URL:** https://talk.remobjects.com/t/german-umlaute-with-lazarus/6041
**Category:** Data Abstract
**Created:** [April 15, 2015, 3:03pm UTC](https://talk.remobjects.com/t/german-umlaute-with-lazarus/6041 "2015-04-15T15:03:40Z")
**Posts on this page:** 1
**Showing post:** 29

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [September 30, 2015, 11:10am UTC](https://talk.remobjects.com/t/german-umlaute-with-lazarus/6041/29 "2015-09-30T11:10:20Z")

</div>

I’ve found the problem.  
As I said earlier, there is a problem in FPC itself.

open %Lazarus%\fpc\2.6.4\source\packages\fcl-db\src\base\db.pas and look for TDataSet.DataConvert :

```auto
procedure TDataSet.DataConvert(aField: TField; aSource, aDest: Pointer;
  aToNative: Boolean);

 // There seems to be no WStrCopy defined, this is a copy of
 // the generic StrCopy function, adapted for WideChar.
 Function WStrCopy(Dest, Source:PWideChar): PWideChar;
 var
   counter : SizeInt;
 Begin
   counter := 0;
   while Source[counter] <> #0 do
   begin
     Dest[counter] := char(Source[counter]); //<<< here should be WideChar instead of char , so it loses all unicode chars
     Inc(counter);
   end;
   { terminate the string }
   Dest[counter] := #0;
   WStrCopy := Dest;
 end;    
...

```

---

_[View the full topic](https://talk.remobjects.com/t/german-umlaute-with-lazarus/6041)._
