Open asulis opened 10 years ago
An exception is raised if a unicode string is assigned to a message field, when the string contains non-ascii characters and the validation is STRICT
Create a pid segment and try to assign to PID.5.1 field (surname) the following string:
pid = Segment('PID', validation_level = VALIDATION_LEVEL.STRICT) pid.pid_5.pid_5_1 = u'mandà'
It raises
'ascii' codec can't encode character u'\xc0' in position 2: ordinal not in range(128)
The assignment should be valid
Description
An exception is raised if a unicode string is assigned to a message field, when the string contains non-ascii characters and the validation is STRICT
How to reproduce
Create a pid segment and try to assign to PID.5.1 field (surname) the following string:
What happens
It raises
What should happen
The assignment should be valid