Questions tagged [non-latin]

70 questions
1
vote
0 answers

preg_match returns different symbols than input string

[Resolved] Adding the modifier /u to the regular expression fixes this issue if anyone is struggling with this. Credit to M.I. in the comments :) Consider the following code: var_dump('Trimiteţi'); preg_match('/^([\p{L}]+)/', 'Trimiteţi',…
Arno
  • 356
  • 5
  • 18
1
vote
2 answers

word boundary on non latin characters in php

This example works fine: echo preg_replace("/\bI\b/u", 'we', "I can"); // we can This one were russian letters are used does not work even though I use "u" modifier: echo preg_replace("/\bЯ\b/u", 'мы', 'Я могу'); // still "Я могу" So the question…
src091
  • 2,807
  • 7
  • 44
  • 74
1
vote
1 answer

How to create Windows native compatible Zip files with non-ASCII filenames

Our team has a program that generates PDFs written in Java. The PDFs, which may have non-ASCII filenames, are zipped using Apache Commons Compress. The zip files are then uploaded to S3 to be downloaded by Windows and Mac clients. When unzipped on…
tao
  • 11
  • 3
1
vote
0 answers

Android can't find asset with Arabic in its name

The problem I can't open an Android asset that has Arabic letters in it. getAssets().open(name) throws an IOException saying that the file is not found only if the asset has an Arabic letter in it, like د. Note, I'm confident that my code works…
Sadra
  • 13
  • 4
1
vote
1 answer

Getting mysql by php turns non-latin characters into question mark "?"

When I echo values with non-latin characters from MySQL they turn into question marks. And I mean question marks "?" not "�". I got these things: header('Content-Type: text/html; charset=ISO-8859-2'); //php
Jerry Sky
  • 11
  • 1
  • 6
1
vote
3 answers

Eastern Character Set Causes Problems For SQL Server 2012

I have a table with contents: internalid foreignWord 1 បរិស្ថាន 2 ការអភិវឌ្ឍសហគមន៍ And its schema: CREATE TABLE [dbo].[CE_testTable]( [internalid] [int] IDENTITY(1,1) NOT NULL, [foreignWord] [nvarchar](50) NOT NULL If I run: SELECT…
bendecko
  • 2,643
  • 1
  • 23
  • 33
1
vote
1 answer

android app title naming

I'm trying to upload my android app, but instead of my app name "Соновник" it shows question marks. I've stored all my string in the values/strings.xml file. Is there some naming convention or am I supposed to do something for my app title to…
Worker123
  • 595
  • 4
  • 13
  • 32
0
votes
1 answer

codeigniter non latin characters ajax call

I have a textarea and a button where i send the text via ajax to the database to post it. However when i post non-latin characters... it wont get them and it returns blank... if the text is in latin characters it works fine... my js code …
stergosz
  • 5,754
  • 13
  • 62
  • 133
0
votes
2 answers

preg_match a keyword variable against a list of latin and non-latin chars keywords in a local UTF-8 encoded file

I have a bad words filter that uses a list of keywords saved in a local UTF-8 encoded file. This file includes both Latin and non-Latin chars (mostly English and Arabic). Everything works as expected with Latin keywords, but when the variable…
Yallaa
  • 63
  • 1
  • 8
0
votes
1 answer

Problems storing non-latin characters in mysql database

I am currently running a honeypot to catch forum spammers, and I have been having problems with storing non Latin characters in my database, I have utf8_unicode_ci set on database and table level and I use mysql_query("SET NAMES 'utf8'") to make…
Connorw600
  • 68
  • 1
  • 9
0
votes
0 answers

Non Latin characters is not showing in IText 5 using java

Hi I'm creating a pdf report using Itext 5, the report contains non-Latin characters, some characters are showing, and some are not. I'm adding the minimum code example to replicate the issue. I think it may be font, but same font is working with…
Aqeel Haider
  • 603
  • 7
  • 24
0
votes
1 answer

Redirection of URLs with non-latin characters

I'm having trouble with what seems like a simple redirects, but the separate online tests I've done show interesting results. URL 1 to redirect: https://example.com/bg/%D0%B0%D0%B2%D1%82%D0%BE%D1%80/author-name Note: %D0%B0%D0%B2%D1%82%D0%BE%D1%80…
Advanced SEO
  • 387
  • 1
  • 4
  • 18
0
votes
1 answer

Non-English characters: How to get VBA comparison to be consistent with Excel formula comparison?

Beyond ordinary Latin characters, Excel somehow does a pretty good job of sorting strings in various alphabets. < and > in formulae use that same order. But < and > in VBA use a different order - probably given by Unicode(). The extract below shows…
zsalya
  • 454
  • 4
  • 8
0
votes
1 answer

Translating non-latin characters from a latin only system

Apologies if this has already been answered previously... We've got an online mail reader (php based) that currently substitutes "�" or the upright rectangle for non-latin based characters in a window where the message body is loaded via an iframe.…
Ser Ender
  • 209
  • 4
  • 15
0
votes
1 answer

how to (a) write non-latin text in phpMyAdmin and (b) show it on a browser using php

I have seen some solutions but I can't seem to understand how to make it work. (a) in phpMyAdmin I can select between these 2 options for hebrew: hebrew_general_ci hebrew_bin after picking one of these - I can see in phpMyAdmin the characters…
Alon
  • 7,618
  • 18
  • 61
  • 99