I have an issue with what maybe an encoding problem with a text file.
The file is a .ply file from blender.
I am trying to use reader and some regexs to strip out the vertices, normals and indices.
P
My aim being some slightly less tedious importing of meshes as polys for DX9/DX11
Issue…
I have discovered by looking at the file in notepad++ the file is ansi encoded.
If I look at it notepad++ all looks good. Apart from Unix line feeds
However in my patch some of the data is getting truncated by separate (string) to the wrong values this seems to be where
some of the lf’s are (linefeeds) because of the Unix line feeds.
Any hints on how to deal with this in vvvv? separate help node gives a hint, but no use case.
I have tried various encoding settings the pin on the reader node too…but no luck.
quite a subject indeed, but luckily in vvvv you hardly every have to deal with it. strings in vvvv are always (always!) unicode and with any string nodes you don’t have to think about encodings at all.
only when reading/writing to/from a file or the network you have to deal with encodings but really nowadays luckily mostly all is utf8 for those cases. so yes it was a big issue a few years ago but now it you shouldn’t need to deal with it much.
different line-endings still exist but are easily converted, so also no big deal.