diacritics

How do I create files/folders with diacritics using a bat script

怎甘沉沦 提交于 2019-12-13 02:03:41
问题 I have a bat file that reads the lines a file, and then tries to create files or folders, depending on the given argument. The problem is that when it gets to chars as ăâțîș, it does not work. This is my code: IF "%1"=="" GOTO Final IF "%1"=="file" GOTO File IF "%1"=="folder" GOTO Folder :File for /f %%i in (files.txt) do echo. > %%i.rtf GOTO Final :Folder for /f "tokens=*" %%a in (folders.txt) do ( mkdir "%%a" ) GOTO Final :Final What I've tried so far using this link: Manage paths with

Rename ä, ö, ü to ae, oe, ue

橙三吉。 提交于 2019-12-13 00:40:39
问题 We want to rename strings that way that "strange" characters like German umlauts are translated to their official non-umlaut representation. In Java, is there some function to convert such characters (AKA handle the mapping), not only for the German umlauts, but also for French, Czech or Scandinavian characters? The reason is to create a function that could rename files/directories that could be handled without problems on different platforms by Subversion. This question is similar but

Stop webclient from escaping strings

偶尔善良 提交于 2019-12-12 21:08:05
问题 I want to use the Google Maps API to geocode/reverse-geocode coordinates/addresses. To do this, I use an instance of C#'s webclient class. static string gMapsUrl= "http://maps.googleapis.com/maps/api/geocode/xml?address= {0}&sensor=false"; public static List<Location> RetrieveCoordinate(string address) { string requestUri = string.Format(gMapsUrl, address); string result = string.Empty; using (var client = new WebClient()) { client.Encoding = System.Text.Encoding.UTF8; result = client

Diacritic insensitive mysql search?

佐手、 提交于 2019-12-12 20:51:06
问题 How do I make a diacritic insensitive, ex this persian string with diacritics هواى بَر آفتابِ بارِز is not the same as with removed diacritics in mySql هواى بر آفتاب بارز Is there a way of telling mysql to ignore the diacritics or do I have to remove all the diacritics in my fields manually? 回答1: It's a bit like case-insensitivity problem. SELECT * FROM blah WHERE UPPER(foo) = "THOMAS" Just convert both strings to diacritic-free before comparing. 回答2: I'm using utf8 (utf8_general_ci) and

How to search string using Entity Framework with .Contains and with accent-insensitive

喜夏-厌秋 提交于 2019-12-12 15:33:50
问题 In my database, I have a table that stores cities. Some cities have accents like "Foz do Iguaçu". In my MVC application, I have a JSON that return a list of cities based in a word, however, few users aren't using accents to search for the city, for example "Foz do Iguacu". in my database I have "Foz do Igua Ç u" but users users searches for "Foz do Igua C u" How can I search records in my table, ignoring accents? Here is my code: using (ServiciliEntities db = new ServiciliEntities()) { List

str_getcsv is broken, clips diacritics?

喜夏-厌秋 提交于 2019-12-12 10:04:36
问题 I have a code like this in a file that is UTF-8 encoded: <?php setlocale(LC_ALL, 'cs_CZ.utf8'); //Can be commented out without effect. $input = "Štěpán,Šafránek"; $result = str_getcsv($input); echo $result[0]; //output = "těpán"; echo $result[1]; //output = "afránek"; ?> Notice the clipped strings those echoes produce. Also this works: <?php setlocale(LC_ALL, 'cs_CZ.utf8'); //Can be commented out without effect. $input = "aaaŠtěpán,aaaŠafránek"; $result = str_getcsv($input); echo $result[0];

Highlight words with (and without) accented characters / diacritics in jQuery

故事扮演 提交于 2019-12-12 08:38:53
问题 I'm using the jquery.highlight plugin: http://code.google.com/p/gce-empire/source/browse/trunk/jquery.highlight.js?r=2 I'm using it to highlight search results. The problem is that if I search something like "café" it won't highlight any words. And if I search "cafe" , even though my results contains both "cafe" & "café" , it will only highlight "cafe" . So, I would need to highlight all "versions" of the words, with or without diacritics. Is that possible? 回答1: http://jsfiddle.net/nHGU6/

jquery filter script not ignoring diacritics and not highlighting string matches as user enters filter text into text input field

寵の児 提交于 2019-12-12 05:26:50
问题 I have multiple vocabulary tables on the same html page. Above each vocabulary table, I would like to enable users to type a word or phrase in a text input field to view only the table rows that contain the typed string (word or phrase). For example, if you type "good" in the text input field, the table rows that do not contain the string "good" will disappear. This is already working if you go to http://www.amanado.com/idioma-colombiano/, click on "Vocabulario (oficial y de jerga) - palabras

How to match with regex unicode text ignoring diacritics on characters (Á É Í)

霸气de小男生 提交于 2019-12-12 02:02:50
问题 What I am trying to achieve is - I want to use a preg-replace to highlight searched string in suggestions but ignoring diacritics on characters, spaces or apostrophe. So when I will for example search for ha my search suggestions will look like this: O' Ha ra Ó an C há intighe H'a SOMETHING I have done a loads of research but did not come up with any code yet. I just have an idea that I could somehow convert the characters with diacritics (e.g.: Á, É...) to character and modifier (A+´, E+´)

iOS HttpRequest with umlaut has incorrect length

一个人想着一个人 提交于 2019-12-11 20:25:00
问题 Within iOS I am building an http request as follows: NSURL* url = [ NSURL URLWithString:[ NSString stringWithFormat: @"%@%@", [ HPSWebService getBaseURL ], @"Sync/PushObject"] ]; // 'request' is defined within the base class and is set here to the class-specific server url request = [[NSMutableURLRequest alloc] initWithURL:url]; NSString* jsonRequest = [NSString stringWithFormat: @"{\"collection\":\"responses\",\"id\":\"%@\",\"objectjson\":%@}",response.id,response.json]; NSLog(@