We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Fix unicode values in fields with STRICT validation
8dcfd94
Fixes issue crs4#7
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: