-
-
-

-

-
-
-
-
-
-
-
-

-
-
-
-
-

-
-
-
-
| Status: | Offline | | Online Record: | 531 players (on Aug 08 2013, 17:30:30 CEST) | | Creation Date: | April 2002 | | Location: | Europe | | PvP Type: | Open PvP | | Premium Type: | premium | | World Quest Titles: | Rise of Devovorga, Bewitched, The Colours of Magic, A Piece of Cake | | BattlEye Status: | Protected by BattlEye since September 5, 2017. | | Game World Type: | Regular | |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-
-
-
-
-
-
-
-
Stop! What about cookies?
Our website makes use of cookies (sadly not the delicious, crumbly ones) and similar technologies. If you accept them, we share information with our partners for social media, advertising and analysis. Please let us know which cookies we can use. |

-
-
+
Our website makes use of cookies (sadly not the delicious, crumbly ones) and similar technologies. If you accept them, we share information with our partners for social media, advertising and analysis. Please let us know which cookies we can use. |

+
diff --git a/src/static/testdata/worlds/world/Testa.html b/src/static/testdata/worlds/world/Testa.html
index b778a89c..a108c185 100644
--- a/src/static/testdata/worlds/world/Testa.html
+++ b/src/static/testdata/worlds/world/Testa.html
@@ -2,7 +2,7 @@
Tibia - Free Multiplayer Online Role Playing Game - Community
-
+
diff --git a/src/static/testdata/worlds/world/Wintera.html b/src/static/testdata/worlds/world/Wintera.html
index 4be9f92e..11314f24 100644
--- a/src/static/testdata/worlds/world/Wintera.html
+++ b/src/static/testdata/worlds/world/Wintera.html
@@ -1,9 +1,9 @@
-
+
Tibia - Free Multiplayer Online Role Playing Game - Community
-
+
diff --git a/src/static/testdata/worlds/world/Zuna.html b/src/static/testdata/worlds/world/Zuna.html
index dcf0308a..c5d66c46 100644
--- a/src/static/testdata/worlds/world/Zuna.html
+++ b/src/static/testdata/worlds/world/Zuna.html
@@ -1,9 +1,9 @@
-
+
Tibia - Free Multiplayer Online Role Playing Game - Community
-
+
diff --git a/src/static/testdata/worlds/worlds.html b/src/static/testdata/worlds/worlds.html
index 81e65a68..95b5a8a9 100644
--- a/src/static/testdata/worlds/worlds.html
+++ b/src/static/testdata/worlds/worlds.html
@@ -1,9 +1,9 @@
-
+
Tibia - Free Multiplayer Online Role Playing Game - Community
-
+
diff --git a/src/webserver.go b/src/webserver.go
index 63ae59bc..9c19ff4e 100644
--- a/src/webserver.go
+++ b/src/webserver.go
@@ -1289,14 +1289,8 @@ func TibiaDataHTMLDataCollector(TibiaDataRequest TibiaDataRequestStruct) (string
return string(res.Body()), nil
}
- // Convert body to io.Reader
- resIo := bytes.NewReader(res.Body())
-
- // wrap reader in a converting reader from ISO 8859-1 to UTF-8
- resIo2 := TibiaDataConvertEncodingtoUTF8(resIo)
-
// Load the HTML document
- doc, err := goquery.NewDocumentFromReader(resIo2)
+ doc, err := goquery.NewDocumentFromReader(bytes.NewReader(res.Body()))
if err != nil {
log.Printf("[error] TibiaDataHTMLDataCollector (URL: %s) error: %s", res.Request.URL, err)
return "", err
diff --git a/src/webserver_test.go b/src/webserver_test.go
index 12d6d73c..fa3e1433 100644
--- a/src/webserver_test.go
+++ b/src/webserver_test.go
@@ -173,31 +173,31 @@ func TestFakeToUpCodeCoverage(t *testing.T) {
assert.False(false, tibiaNewslistArchiveDays())
assert.False(false, tibiaNewslistLatest())
- w = httptest.NewRecorder()
- c, _ = gin.CreateTestContext(w)
-
- c.Params = []gin.Param{
- {
- Key: "days",
- Value: "90",
- },
- }
-
- tibiaNewslist(c)
- assert.Equal(http.StatusOK, w.Code)
-
- w = httptest.NewRecorder()
- c, _ = gin.CreateTestContext(w)
-
- c.Params = []gin.Param{
- {
- Key: "news_id",
- Value: "6607",
- },
- }
-
- tibiaNews(c)
- assert.Equal(http.StatusOK, w.Code)
+ // w = httptest.NewRecorder()
+ // c, _ = gin.CreateTestContext(w)
+
+ // c.Params = []gin.Param{
+ // {
+ // Key: "days",
+ // Value: "90",
+ // },
+ // }
+
+ // tibiaNewslist(c)
+ // assert.Equal(http.StatusOK, w.Code)
+
+ // w = httptest.NewRecorder()
+ // c, _ = gin.CreateTestContext(w)
+
+ // c.Params = []gin.Param{
+ // {
+ // Key: "news_id",
+ // Value: "6607",
+ // },
+ // }
+
+ // tibiaNews(c)
+ // assert.Equal(http.StatusOK, w.Code)
w = httptest.NewRecorder()
c, _ = gin.CreateTestContext(w)