Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending UTF-8 emails using CDO2000
Message
From
13/08/2021 05:57:03
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01681865
Message ID:
01682075
Views:
66
Hi!

>> >Because you have national characters in domain name, then smtp adress must use punnycode:
>
>That really shouldn't be necessary. When calling COM objects from FoxPro as the ANSI FoxPro COM Interop APIs automatically convert strings to Unicode.

domain name needs converted to punnycode. Using special conversion in code to punnycode as Martina posts it worked.
It looks like CDO does not perform this conversion.

>And that should work **as long as the active CodePage supports the characters it's trying to assign**. >If the string has values that are not valid for the current CodePage the input is hosed before it ever >goes to COM. If you are in a Russian CodePage I don't think the Western Umlauts are valid and if >printed would print `?`.

I'm in windows-1257 (Baltic) code page. Accented characters from this page in e-mail body and subject work OK without specifiying UTF conversion.
Only accented domain name has the issue.

>It's hard to say based on the original description that Andrus posted but it sounds to me he's running in a non-Western Code page and trying to send Western characters, which simply won't work unless you switch code pages and convert to binary strings or UTF-8.

I'm in Windows 1257 code page and sending characters which are valid in this page.

Andrus.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform