首页 > 解决方案 > 错误消息 - “未提供编码:默认为 UTF-8” - ecb 包

问题描述

我想利用 ecb 包中的“获取数据”功能将数据直接加载到数据框中。通过以下代码可以轻松访问整个数据

 library(ecb)
    deposits_nfcs_FR <- get_data("MIR.M.FR.B.L21.A.R.A.2250.EUR.N")

但是,从今天开始,我收到以下错误消息

No encoding supplied: defaulting to UTF-8.
Error in check_status(req) : HTTP failure: 502
<html lang="en"><head><title>European Central Bank</title><style type="text/css"> body{ font-family: "Droid Sans", sans-serif; margin:0; padding:0; background-color: #9099ab; text-align: center; } h1{  font-size:38px; font-weight: normal; color:#003299; }  @media screen and (max-width: 480px) { h1{ font-size: 30px; } }  p { font-size: 15px; line-height: 20px; color: #333; margin-bottom: 20px; }  p.signature{ font-style: italic; color:#DF0101; }  .centredFrame { margin: 0 auto; text-align: center; width: 70%;   } .content{ margin-top:40px; padding:40px; background-color: #fff; border:1px solid #CDE3E0; -moz-border-radius: 20px; border-radius: 20px; } </style><link href="//fonts.googleapis.com/css?family=Droid+Sans" rel="stylesheet" type="text/css"></head><body><div class="centredFrame"><div class="content"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACACAYAAACx1FRUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VG

有人知道吗?解决方案必须简单明了,因为我没有在代码中更改任何内容。

非常感谢提前和最好的问候!

标签: r

解决方案


推荐阅读