c# - Space character becomes Euro character -


i have pdf template (made designer) editable fields on it. task values web service (returns json in utf-8) , populate fields in pdf. use pdfsharp library , specify encoding through xfont (tried both, winansi , unicode). document looks ok after saving, if click inside 1 field contains number space (10 000.00), space becomes euro character. other text fields spaces not have behavior , if hardcode string value in code, ok.

any idea problem here welcome.

thanks in advance

edit

like commented below, indexer on string value showed 160 underneath problematic character. found this post on stackoverflow afterwards. minuses, try better next time :)

unicode has many different spaces. make sure have standard space (ascii 32 or 0x20) in number.

i think encoding specify has no effect on encoding used form contents (which presumably use pdf encoding). suspect number string contains special space character while other strings use normal space characters.

replacing spaces in number strings quick , easy workaround.

it there bug in pdfsharp. without further information (e.g. sscce) bug not fixed soon.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -