[FIX]Words accented not working

Sicily94

Junior Member
Members
11Posts:
3 Threads:
Dec 10Joined:
0 Reputation:
#1
Lightbulb 
Hi guys, i want to post the fix for letters with accents that not works

HOW TO DO

Open your project with Visual Studio and search StringCharFilter.cs and replace with this one (from my SicilyEMU) !


Code:
using System;
using System.Text.RegularExpressions;

namespace Plus.Utilities
{
   static class StringCharFilter
   {
       public static string Escape(string str, bool allowBreaks = false)
       {
           char[] charsToTrim = { ' ', '\t' };
           str = str.Trim(charsToTrim);
           str = str.Replace(Convert.ToChar(1), ' ');
           str = str.Replace(Convert.ToChar(2), ' ');
           str = str.Replace(Convert.ToChar(3), ' ');
           str = str.Replace(Convert.ToChar(9), ' ');
           if (!allowBreaks)
           {
               str = str.Replace(Convert.ToChar(10), ' ');
               str = str.Replace(Convert.ToChar(13), ' ');
           }
           str = Regex.Replace(str, "<(.|\\n)*?>", string.Empty);
           return str;
       }
       public static string EscapeJSONString(string str)
       {
           return str.Replace("\"", "\\\"");
       }
   }
}
Compile and Done!
Jeunx likes this post
Reply

Tom

RetroRiper Love
Owner
Developer
60Posts:
6 Threads:
Oct 07Joined:
4 Reputation:
Developer
#2
Nice!

Tnx for the release.

Tom
Reply

Sicily94

Junior Member
Members
11Posts:
3 Threads:
Dec 10Joined:
0 Reputation:
#3
@Tom You're welcome!  Wink
Reply

Jeunx

Junior Member
Members
9Posts:
0 Threads:
Nov 18Joined:
0 Reputation:
#4
Thanks .d
Reply
Users browsing this thread:
1 Guest(s)