Ruby: URI::InvalidURIError (URI must be ascii only

前端 未结 3 1962
抹茶落季
抹茶落季 2021-01-07 17:57
require \'uri\'
uri = URI.parse \'http://dxczjjuegupb.cloudfront.net/wp-content/uploads/2017/10/Оуэн-Мэтьюс.jpg\'

The browsers have no problem with

3条回答
  •  死守一世寂寞
    2021-01-07 18:22

    I had the same error:

    Ruby: URI::InvalidURIError (URI must be ascii only

    with my code, but my bug was that it was an old project and the i18n was outdated. It was solved, with a simple:

    bundle update
    

提交回复
热议问题