migajek <[EMAIL PROTECTED]> wrote: > I'm embedding GECKO 1.7 to my ObjectPascal (Delphi) app and I would > like to access DOM elements. The problem is that DOM functions > requires nsAString as the parameter, but I haven't found any function > to convert string to nsAString in Delphi-GeckoSDK. > What is the best way to convert string to nsAString?
If I remember correctly, String in Delphi contains narrow (8-bit) characters. nsAString holds Unicode characters in UTF-16 encoding. What encoding are your narrow strings in? If your strings are known to only hold 7-bit ASCII, use NS_ConvertASCIItoUTF16 and NS_LossyConvertUTF16toASCII. Igor Tandetnik _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
