'Scenario: User can upload transcript file with BOM(Byte Order Mark) in it.
Given I have created a Video component
And I edit the component
And I open tab "Advanced"
And I upload transcript file "chinese_transcripts_with_BOM.srt" for "zh" language code
And I save changes
Then when I view the video it does show the captions
And I see "èæÂ·äœ©æ (Sarah Palin)" text in the captions'

def test_upload_transcript_with_BOM(self):

    self._create_video_component()
    self.edit_component()
    self.open_advanced_tab()
    self.video.upload_translation('chinese_transcripts_with_BOM.srt', 'zh')
    self.save_unit_settings()
    self.assertTrue(self.video.is_captions_visible())
    unicode_text = '\xe8\x8e\x8e\xe6\x8b\x89\xc2\xb7\xe4\xbd\xa9\xe6\x9e\x97    (Sarah    Palin)'.decode('utf-8')
    self.assertIn(unicode_text, self.video.captions_lines())
