When fscanf(fp,"%f,",&fval); is not working

When read text file like filter constant file,

I usually use fscanf(fp, "%f", &fval);. But Today, it is not working at all.

So, I spent whole 5 hrs then found that text file is encoded UTF-8.

So, I save as ASCII text file then it works like a charm.


Comments