Forum Discussion
Problem with Codepage / Special character viuialisation
Hi Ralfk,
Based on your information, I'm a little confused about your requirement.
Do you want to convert the special character in german to standard character?
I'm not good at Power Query, ImkeF may help you.
In addition, you could share some data sample and your desired output so that we could understand your requirement better and get the solution.
Best Regards,
Cherry
- ImkeF7 years ago
Community Champion
Tbh, that's not my strong suit and I also alway play around with different encodings.
Lately I had some cases where 65001 and 1250 worked (I'm sitting in Germany as well).
Otherwise you can try to apply the decoding with an optional parameter in your first import-step already: https://msdn.microsoft.com/en-gb/query-bi/m/db2-database
- Ralfk7 years agoNew Member
Hi Imke,
thanks for your reply!
I must adsmit that I have no idea how to implement your advice.....
Is this a function I have to add in the query definition??
query definitionRegards Ralf
- ImkeF7 years ago
Community Champion
You have to tweak the code where you import from the DB2-database.
Currently it should look like so:
DB2.Database(<YourServername>, <YourDatabasename>)
try adding a "1" in a record at the end:
DB2.Database(<YourServername>, <YourDatabasename>, [BinaryCodePage= 1])
- Ralfk7 years agoNew Member
Hi Cherry,
i'm sorry to confuse you!
Well let's try to give some more details:These German special characters are already stored correctly in the DB2 -database.
Example:
The town, 'Cologne' is called in German 'Köln'. This is what I wanted to see in my example instead of these strange symbols....In general I can retrieve these data out of the DB and visualize it without any problems.
And as I'm working in the same PC with Power BI and other BI-tools, I can not understand what goes wrong .....
I hope to explain my problem a little bit clearer now....Regards Ralf