From c0c6e9e7a5602f4d1029446efe8857f6c0f169b0 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 23 Nov 2011 22:03:08 +0000 Subject: [PATCH] fix for bad language encoding git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8082 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/data/meta/URIMetadataRow.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/net/yacy/kelondro/data/meta/URIMetadataRow.java b/source/net/yacy/kelondro/data/meta/URIMetadataRow.java index ddb5148b1..be57406d9 100644 --- a/source/net/yacy/kelondro/data/meta/URIMetadataRow.java +++ b/source/net/yacy/kelondro/data/meta/URIMetadataRow.java @@ -327,7 +327,7 @@ public class URIMetadataRow implements URIMetadata { assert (s.toString().indexOf(0) < 0); s.append(",flags=").append(flags().exportB64()); assert (s.toString().indexOf(0) < 0); - s.append(",lang=").append(language()); + s.append(",lang=").append(UTF8.String(language())); assert (s.toString().indexOf(0) < 0); s.append(",llocal=").append(llocal()); assert (s.toString().indexOf(0) < 0); @@ -344,7 +344,8 @@ public class URIMetadataRow implements URIMetadata { if (this.word != null) { // append also word properties - s.append(",wi=").append(Base64Order.enhancedCoder.encodeString(this.word.toPropertyForm())); + final String wprop = this.word.toPropertyForm(); + s.append(",wi=").append(Base64Order.enhancedCoder.encodeString(wprop)); } assert (s.toString().indexOf(0) < 0); return s;