Reputation: 321
I rotate access log of nginx every day. But I found that the file encoding is not always utf-8
, sometime it is latin1
when I view the contents using vim. Is there a way to set the file encoding in nginx?
Upvotes: 1
Views: 1611
Reputation: 3270
You can reload a file in vim with the desired encoding.
e: ++enc=utf-8
Upvotes: 1