From ba4f6608e4954d224dc4f3384bc64e63c7458f78 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sun, 31 Oct 2010 14:52:21 +0000
Subject: [PATCH] update nbsp comment

---
 .../java/src/net/i2p/router/web/ConfigLoggingHelper.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java
index f316e7dc65..7bd4e45462 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigLoggingHelper.java
@@ -25,7 +25,8 @@ public class ConfigLoggingHelper extends HelperBase {
         int bytes = _context.logManager().getFileSize();
         if (bytes <= 0) return "1.00 MB";
         // "&nbsp;" comes back in the POST as 0xc2 0xa0
-        // which is not recognized as whitespace and who knows why
+        // non-breaking space is U+00A0 which is 0xc2 0xa0 in UTF-8.
+        // we could figure out where the UTF-8 problem is but why bother.
         return DataHelper.formatSize2(bytes).replace("&nbsp;", " ") + 'B';
     }
     public String getLogLevelTable() {
-- 
GitLab