urlread / urlwrite with umlaut in the url - is there a way to get this to work?
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear all,
I am trying to read a url that contains german umlauts. This does, apparently, not work with urlread/urlwrite. An example:
urlread('http://www.möbel.de')
produces an error, whereas:
urlread('http://www.moebel.de')
works. Both urls link to the same webpage in this example, btw.
Is there a way to get this to work? In my case, I can not just replace the umlaut (ä -> ae, ö -> oe, ü -> ue), since then the url can not be resolved.
Thanks!
Bjoern
댓글 수: 0
채택된 답변
Friedrich
2014년 4월 23일
HI,
you need to punnycode the name. Try
urlread(char(java.net.IDN.toASCII('http://www.möbel.de')))
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!