You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that, by default, when parsing or creating an ACH, non-ascii characters are replaced with a space or removed by replacing it with an empty string. That seems a bit dangerous since it's not really clear that it's doing it, and that character might be in an important position, so simply "ignoring" it might not be what people really want. I think at least a warning should be given, but for my current case, It might be ideal to consider the file to be invalid, or maybe only the section which has the bad character.
The text was updated successfully, but these errors were encountered:
@henriquegasques To the best of my memory, the replacement with space was added as a quick fix for somebody years ago who had an issue. I vaguely remember thinking it needed a better solution, but dealing with encodings is not something I have much experience with, so I guess I just pushed off doing anything about it until I forgot about it. Your idea of a warning or considering the file invalid makes sense to me (maybe with an option to keep the current behavior).
In the Go ach library I maintain we process the file rune by rune to handle non-ascii characters. Replacing them with blank characters doesn't seem good.
It seems that, by default, when parsing or creating an ACH, non-ascii characters are replaced with a space or removed by replacing it with an empty string. That seems a bit dangerous since it's not really clear that it's doing it, and that character might be in an important position, so simply "ignoring" it might not be what people really want. I think at least a warning should be given, but for my current case, It might be ideal to consider the file to be invalid, or maybe only the section which has the bad character.
The text was updated successfully, but these errors were encountered: