non-english

Are non-english characters 100% supported in codeigniter urls by default?

血红的双手。 提交于 2019-12-06 09:23:33
问题 I want to be sure if this behavior is 100% supported in CodeIgniter. What doubts me is that in config.php the permitted_uri_chars is as followed: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; It says that only English chars are allowed. BUT consider the results of following urls: http://localhost/codeigniter/index.php/controller/method/hell0-there+++ Result: The URI you submitted has disallowed characters. http://localhost/codeigniter/index.php/controller/method/hello-سلام Result: No

How do I remove support for English in my iOS app?

╄→гoц情女王★ 提交于 2019-12-06 06:08:51
问题 I renamed en.lproj to sv.lproj . I then added the Swedish resources to the project and removed the English resources. The problem is that the app still "thinks" that it supports English, i.e. [[NSBundle mainBundle] localizations] returns both en and sv . I've removed every reference to en and English that I could find in the project file and the info plist, but it still supports English. I'm running out of ideas, so please help me. There must be a ton of people that written apps that doesn't

how to sort non-english strings?

蓝咒 提交于 2019-12-05 17:52:44
I did look up answers, and they are good for the standard alphabet. but I have a different situation than that. so, I am programming in Java. I am writing a certain program. this program has at some place some list of string items. I would like to sort those string items according to the alphabet. if I would sort it by English alphabet, it would be easy since usually all code pages are compatible with American standard code for information interchange (ASCII), and they have all letters of English alphabet already sorted, so, if I would like to sort my list, I would only have to compare the

Facebook Graph API - non English album names

半腔热情 提交于 2019-12-05 15:36:31
I am trying to do a simple thing - get all my albums. the problem is that the album names are non-English ( they are in Hebrew ). The code that retrieves the albums : string query = "https://graph.facebook.com/me/albums?access_token=..."; string result = webClient.DownloadString(query); And this is how one of the returned albums looks like : { "id": "410329886431", "from": { "name": "Noam Levinson", "id": "500786431" }, "name": "\u05ea\u05e2\u05e8\u05d5\u05db\u05ea \u05d2\u05de\u05e8 \u05e9\u05e0\u05d4 \u05d0", "location": "\u05e9\u05e0\u05e7\u05e8", "link": "http://www.facebook.com/album.php

possible to raise exception that includes non-english characters in python 2?

我怕爱的太早我们不能终老 提交于 2019-12-05 09:30:40
I'm trying to raise exception in python 2.7.x which includes a unicode in the message. I can't seem to make it work. Is it not supported or not recommended to include unicode in error msg? Or do i need to be looking at sys.stderr? # -*- coding: utf-8 -*- class MyException(Exception): def __init__(self, value): self.value = value def __str__(self): return self.value def __repr__(self): return self.value def __unicode__(self): return self.value desc = u'something bad with field \u4443' try: raise MyException(desc) except MyException as e: print(u'Inside try block : ' + unicode(e)) # here is what

How can I create an alphanumeric Regex for all languages?

大兔子大兔子 提交于 2019-12-05 01:02:41
I had this problem today: This regex matches only English: [a-zA-Z0-9] . If I need support for any language in this world, what regex should I write? If you use character class shorthands and a Unicode aware regex engine you can do that. The \w class matches "word characters" (letters, digits, and underscores). Beware of some regex flavors that don't do this so well: JavaScript uses ASCII for \d (digits) and \w , but Unicode for \s (whitespace). XML does it the other way around. 来源: https://stackoverflow.com/questions/6692540/how-can-i-create-an-alphanumeric-regex-for-all-languages

Are non-english characters 100% supported in codeigniter urls by default?

给你一囗甜甜゛ 提交于 2019-12-04 17:16:38
I want to be sure if this behavior is 100% supported in CodeIgniter. What doubts me is that in config.php the permitted_uri_chars is as followed: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; It says that only English chars are allowed. BUT consider the results of following urls: http://localhost/codeigniter/index.php/controller/method/hell0-there+++ Result: The URI you submitted has disallowed characters. http://localhost/codeigniter/index.php/controller/method/hello-سلام Result: No problem!!! The word سلام (which is in Persian and means "hello") cannot be accepted by the pattern 'a-z 0

Checking for Administrator user login in non-English installations of windows

不想你离开。 提交于 2019-12-04 11:20:37
问题 I have some small questions...I have a program that stores a list of users in a database and compares on program startup if the user is in the list or is an administrator before letting them use it. At the moment, the way I'm using to check if the user is an administrator is simply by comparing the username to a string constant called 'ADMINISTRATOR'. Will this work on a non-Engish system? I.E. does Windows use a language specific version of 'administrator'? Or maybe is there an enumerated

Non-English domain naming issues in programming

血红的双手。 提交于 2019-12-04 03:33:40
Most programming code, I imagine is written in English. But I'm curious how people are handling the issue of naming herein. A lot of programming is done within some bussiness domain, usually with well established terms for certain procedures, items. I'm from Denmark for instance, and something I work a lot with has a term called "indblikskode", which sort of translates to "insight code". So, do I use the line "string indblikskode = ..." in the C# code for some web service related to this? Or do I try to use a translation, such as "insightcode"? The bussiness I'm in isn't even consistent in its

Checking for Administrator user login in non-English installations of windows

会有一股神秘感。 提交于 2019-12-03 07:45:17
I have some small questions...I have a program that stores a list of users in a database and compares on program startup if the user is in the list or is an administrator before letting them use it. At the moment, the way I'm using to check if the user is an administrator is simply by comparing the username to a string constant called 'ADMINISTRATOR'. Will this work on a non-Engish system? I.E. does Windows use a language specific version of 'administrator'? Or maybe is there an enumerated version of the Admin user that I can use to check with instead of my 'ADMINISTRATOR' string? (you know,