File comparison is failing
Hi,
I am using Files.Compare functionality to compare two files.
Tested application supports English and Chinese language.
I use the code
Log.Message(BaselinePath)
Log.Message(OutputPath)
if (!Files.Compare(BaselinePath,OutputPath))
{
Log.Error("File comparision failed")
} else
Log.Checkpoint("File comparision passed for tab ");
For English this works fine.
Problem is with Chinese language.
For Chinese, file being compared is having a Chinese name inside a Chinese folder.
When output the path using Log command then correct path is seen in log .
But Files.Compare fails for Chinese. In log says no item or file name present and ?? is seen in path in place of file and folder name which are in Chinese language.
Attached in log snapshot.
How to avoid this and compare files in such case also.