Results 1 to 2 of 2

Thread: WideString -> AnsiString -> WideString in Delphi/FPC?

  1. #1

    WideString -> AnsiString -> WideString in Delphi/FPC?

    I'm playing around with Unicode support for my applications. Found these functions to convert between string formats:

    http://www.swissdelphicenter.ch/torr...de.php?id=1692

    It uses WideCharToMultiByte(). My first doubt is what Code Page should I use that gives the most compatibility? And also, how does FPC manages WideStrings? Does it make automatic conversion? :?

    Thanks!
    -Marco

  2. #2

    WideString -> AnsiString -> WideString in Delphi/FPC?

    Unless I'm mistaken, I thought that FPC had "WideCharToString" and vice versa. I don't know how you would change between WideChar and WideString though. You could always use "WideCharToStringLen" to explicitly name the length.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •