Hello, how do i handle characters like Å Ä Ö in Data 360?
In my example i am creating them in a transform node:
out1.A = str
If condition 1:
out1.A = ' Väster'
I get the result "VÃ¤ster"
For out1.A = "Öster" i get Ãster
I have tried making the data type unicode but same result
There are two issues.
The first is that Python 2 requires you to create a unicode string explicitly. This can be achieved by prefixing the string value with u e.g. u'Väster'
The second is that you cannot use a 'str' type field to store a unicode value - a 'str' type field can only store ASCII values. We recommend you define text fields as 'unicode' type unless there is a specific reason for using the 'str' type field.
You can also create a unicode string using the unicode() constructor, e.g. value2 = unicode("Öster","utf-8")