Parsing D files with non-unicode characters

Roland Hadinger rolandh.dlangforum at maildrop.cc
Tue Nov 6 00:38:03 UTC 2018


On Monday, 5 November 2018 at 23:50:46 UTC, Arun Chandrasekaran 
wrote:
> I'm converting a large amount of header files from C to D using 
> DStep and I'm stuck at 
> https://github.com/jacob-carlborg/dstep/issues/215
>
> https://dlang.org/spec/intro.html shows that ASCII and UTF char 
> formats are accepted. How do I go about converting a large code 
> base like this?

Just an idea: if you have 'iconv' available, you could always 
strip out non-utf-8 characters beforehand. See:

https://stackoverflow.com/questions/12999651/how-to-remove-non-utf-8-characters-from-text-file



More information about the Digitalmars-d mailing list