<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_encoding(self, encoding):
 """Update encoding of current file."""

        value = str(encoding).upper()
        self.set_value(value)