VPE Unicode

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE Unicode

Postby Frigyes » Thu Feb 27, 2025 4:25 pm

I wanted to try the Unicode version now.
VPE 7.4 64Bit

I know the restrictions, but shouldn't the internal VPE commands support Unicode?

For example, I try to set the PDF document title with:

VpeSetTitle(hDoc, L"Здравствуйте Lieber: ÖÜß");

but the Cyrillic characters are replaced by spaces.

Should this works this way?
do I need a different DLL?
Frigyes
 
Posts: 28
Joined: Thu Jun 29, 2006 12:09 pm

Re: VPE Unicode

Postby IDEAL Software Support » Thu Mar 06, 2025 5:51 pm

VPE does not support Unicode. If you want to use Cyrillic, switch the character set. See https://idealsoftware.com/manuals/ctrl/index.html?charset.html for the VPE Control or https://idealsoftware.com/manuals/dll/index.html?vpesetcharset.html when using the VPE DLL.
IDEAL Software Support
 
Posts: 1637
Joined: Thu Nov 18, 2004 4:03 pm

Re: VPE Unicode

Postby Frigyes » Thu Mar 13, 2025 10:20 am

I understand that internal functions (like VpeWrite ) do not support Unicode,

but why are there Unicode includes for standard functions (vpifaceu.h),
When I compile with Unicode, we bind the function:
VpeSetTitleU(VpeHandle hDoc, VpeCString title);
instead of VpeSetTitle(...).

So, there should be a difference. ?
Frigyes
 
Posts: 28
Joined: Thu Jun 29, 2006 12:09 pm

Re: VPE Unicode

Postby IDEAL Software Support » Thu Mar 13, 2025 11:37 am

The only difference is that you provide strings of type wchar_t to the U-functions, which are then converted to ANSI internally based on the selected codepage. These are convenience functions for simpler development of add-ons, like the VPE Python control, because Python uses wchar_t for string representation.
IDEAL Software Support
 
Posts: 1637
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 31 guests