-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
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
staedi api : EDIStreamReader fail to parse if segment element has accent marks . #454
Comments
Hi @sharukhshaik126 , what is the character encoding of the data you are reading? You can use one of the overloads of |
@MikeEdgar actually when i tried to parse edi file with accent marks it throw below exception : my code block : EDIInputFactory inputFactory = EDIInputFactory.newFactory(); |
@sharukhshaik126 you'll need to provide the name of the character encoding when you create the Something like this (I am only guessing on the encoding in this example): EDIStreamReader ediReader = inputFactory.createEDIStreamReader(inputStream, "ISO-8859-1"); |
Let me try with different encoding "UTF-8" and ISO-8859-1 , Thanks @MikeEdgar |
FYI that the default is |
Thanks , will try to define exact charset encoding to parse it. will update you here. |
@sharukhshaik126 any luck? |
@MikeEdgar No in linux still it throws exception after setting encoding to UTF-8 |
Did you also try with |
@sharukhshaik126 can you possibly provide a test file without sensitive data that I can use to reproduce the issue? Using the sample text you gave originally I haven't been able to trigger any errors. |
@MikeEdgar after using charger encode ad ISO-8859-1 |
Great news! Thanks for the update @sharukhshaik126 . I'll go ahead and close the issue, but please re-open if this still isn't resolved in your opinion and we'll discuss further. |
Describe the bug
In my x12 EDI file I have NM1*IL segment which contains alphabets accents marks & it not parse element by EDIstreamreader class.
To Reproduce
Parse any EDI x12 file with accent marks
Eg:
NM1*IL*1*VíAK SéVAG*KIAZDEN****34*673459754~
Expected behavior
Edistreamreader has to parse elements which has accent marks in both linux and windows env.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: