diff --git a/NetDb.cpp b/NetDb.cpp
index 3e6b83fa..75669260 100644
--- a/NetDb.cpp
+++ b/NetDb.cpp
@@ -213,7 +213,7 @@ namespace data
{
if (it.second->IsUpdated ())
{
- std::ofstream r (GetFilePath(directory, it.second));
+ std::ofstream r (GetFilePath(directory, it.second), std::ofstream::binary);
r.write ((char *)it.second->GetBuffer (), it.second->GetBufferLen ());
it.second->SetUpdated (false);
count++;
diff --git a/Win32/i2pd.vcxproj b/Win32/i2pd.vcxproj
index a98c7449..353e8afa 100644
--- a/Win32/i2pd.vcxproj
+++ b/Win32/i2pd.vcxproj
@@ -24,6 +24,7 @@
+
@@ -48,6 +49,7 @@
+
diff --git a/Win32/i2pd.vcxproj.filters b/Win32/i2pd.vcxproj.filters
index 39abceab..152edb53 100644
--- a/Win32/i2pd.vcxproj.filters
+++ b/Win32/i2pd.vcxproj.filters
@@ -72,6 +72,9 @@
Source Files
+
+ Source Files
+
@@ -149,5 +152,8 @@
Header Files
+
+ Header Files
+
\ No newline at end of file
diff --git a/i2p.cpp b/i2p.cpp
index e2b44dfe..51c6d1eb 100644
--- a/i2p.cpp
+++ b/i2p.cpp
@@ -13,6 +13,14 @@
int main( int, char** )
{
+
+#ifdef _WIN32
+ setlocale(LC_CTYPE, "");
+ SetConsoleCP(1251);
+ SetConsoleOutputCP(1251);
+ setlocale(LC_ALL, "Russian");
+#endif
+
i2p::util::HTTPServer httpServer (7070);
httpServer.Start ();