uni2ascii
If you are ever having issues with g++ compiling code cut and pasted from a website, specifically stuff like "stray \200 on line" or other similar errors, then uni2ascii is for you.
Just take the problem file, and do the following
cat problem.cpp | uni2ascii -B > problem_clean.cpp
The uni2ascii program will do it's very best to convert unicode to ascii where possible.
The new file should compile okay. Remember the -B, if you forget it, you will have lots of random unicode escapes in your output.
Labels: IT, linux, programming
0 Comments:
Post a Comment
<< Home