add encoding
cout time