title: How to decode Japanese Yen symbol in Python?
body: <p>I got a bytes data including Japanese Yen symbol (¥). This seems to be expressed as <code>\xc2\xa5</code>.</p>
  
  <p>However, I can't decode the yen symbol. For example, </p>
  
  <pre><code>yen = b"\xc2\xa5"
  type(yen) # return bytes
  yen.decode("utf-8") # return UnicodeEncodeError: 'ascii' codec can't encode character '\xa5' error
  import chardet
  chardet.detect(yen) # return {'confidence': 0.73, 'encoding': 'windows-1252'}
  yen.decode("windows-1252") # return another UnicodeEncodeError: 'ascii' codec can't encode characters error
  </code></pre>
  
  <p>The bytes data I have can be decoded as <code>utf-8</code> in other aspects. Only Japanese Yen symbol cannot be decoded, no matter what encoding you use.</p>
  
  <p>So how can I decode it?</p>