newbie
newbie

Reputation: 321

How to set access log file encoding in nginx?

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

Answers (1)

Difster
Difster

Reputation: 3270

You can reload a file in vim with the desired encoding.

e: ++enc=utf-8

Upvotes: 1

Related Questions