2

I'm seeing two different standards and am not sure if one is deprecated. Is there a way to test the encoding or verifying one way vs the other?

#!/usr/bin/env python
# encoding: utf-8

OR

#!/usr/bin/env python                                                           
# -*- coding: utf-8 -*-
tarabyte
  • 17,837
  • 15
  • 76
  • 117
  • What do you mean with "to test the encoding or verifying one way vs the other"? Whether the stated encoding matches the encoding in the file? – Kijewski Jul 22 '14 at 19:01
  • @Wooble, kinda abuse of your buttons since the question could be understood differently. See my outstanding question. – Kijewski Jul 22 '14 at 19:02
  • @Kay: feel free to vote to reopen. What the OP is asking was clear to me. – Wooble Jul 22 '14 at 19:05

0 Answers0