タグ

動画と機械翻訳に関するTomosugiのブックマーク (1)

  • My puppyのブログ

    1週間ほど前の話です。 PHPsimplexml_load_string()を使ってYouTubeからxmlファイルをダウンロードしようとしたら失敗してしまいまして、「parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xED 0x6E 0x2C 0x20」の様なエラーが表示されたんですね。 このエラーをグーグルで検索したら、Stack Overflowの以下のページがヒットしました。 この中の回答にある以下のコードを使わせて頂いたところ、解決したので良かったです。 If you are sure that your xml is encoded in UTF-8 but contains bad characters, you can use this function to correct the

    My puppyのブログ
  • 1