I know flex can only use utf-8.
Is there a way to take a unicode file(utf-16 LE) as input and convert it to utf-8 internally?
It receives a file name as input and opens and uses the Unicode file.
...
yyin = fopen("fname", "r");
yyparse();
fclose(yyin);
...