swmm-python
swmm-python copied to clipboard
Support for unicode filenames
Passing a filename containing unicode characters causes ERROR 303.
Bug reported by pyswmm user.
One possible solution would be to use _wfopen() in SWMM on Windows.
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-160
String must be encoded using Latin-1 before passing to SWMM engine. Previously in older pyswmm versions, six.b() was used before passing to SWMM engine.
@michaeltryby is dev-unicode
branch where you last worked on this?
@jennwuu Yes that is is the branch I opened up to work on it.
@michaeltryby looks like we can close this?