Article PS130806188
Problem DescriptionAspPDF's text drawing methods such as PdfCanvas.DrawText expect Unicode text strings. However, text strings that come from databases are often UTF-8 encoded and need to be converted to Unicode before they can be passed to AspPDF. Otherwise, stray characters may appear in the PDF output. SolutionThe following function employing the ADODB.Stream object converts a UTF-8 encoded string to Unicode:
Created: 8/6/2013 10:34:49 AM
Copyright © Persits Software, Inc. 1998 - 2023 |