I'm writing a lambda calculus interpreter for fun and practice. I got iostreams to properly tokenize identifiers by adding a ctype facet which defines punctuation as whitespace:
struct token_ctype : ctype<char> {
mask t[ table_size ];
token_ctype()
: ctype<char>( t ) {
for ( size_t tx = 0; tx < table_size; ++ tx ) {
t[tx] =…
Hi,
In my java application, I need to parse xml that contains control character 0x2 inside CDATA. I tried few ways but coudnt get through. I want to avoid any sort of encoding. Is there any way in XML1.1?
Thanks,
Shefali
Ok, I have a hardcoded string I declare like this
name = u"Par Catégorie"
I have a # -- coding: utf-8 -- magic header, so I am guessing it's converted to utf-8
Down the road it's outputted to xml through
xml_output.toprettyxml(indent='....', encoding='utf-8')
And I get a
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in…
By default Rails allows users of our application to input non-utf8 data, such as: ¶®«¼
However when we attempt to retrieve the data from our database and render it in a template Rails incorrectly assumes that it is in UTF-8 format and throws an error.
ArgumentError: invalid byte sequence in UTF-8
What is the best way to handle this? I…
Hi,
I have been having trouble searching through a MySQL table, trying to find entries with the character (UTF-16 code 200E) in a particular column.
This particular code doesn't have a glyph, so it doesn't seem to work when I try to paste it into my search term. Is there a way to specify characters as their respective code point…
when i insert persian information with use JEE6(JSF and JPA) my information save question mark for example "???" === "???" my database is Mysql and my table is UTF-8 .
when insert persian data directly in database is correct and save correct.
i know that with change one property in JEE my problem go to solved
but i don`t know…
Hello,
I need to write Hebrew text in Latex.
I am currently working on Windows with TeXnicCenter. I was pretty happy with this tool, up until the time when I needed to write Hebrew text. My regular alt-shift just won't change the language (I even downloaded the last alpha version, which was supposed to solve the problem, but it…
I'm writing a stream to a file and stdout, but I'm getting some kind of encoding like this:
\u05ea\u05e7\u05dc\u05d9\u05d8
\u05e9\u05e1\u05d9\u05de\u05dc
\u05e9\u05d9\u05e0\u05d5\u05d9
\u05d1\u05e1\u05d2\u05e0\u05d5\u05df
\u05dc\u05d3\u05e2\u05ea\u05d9
\u05d0\u05dd \u05d0\u05e0\u05d9
\u05d6\u05d5\u05db\u05e8
…
Is this even possible? I've been trying to read a simple file that contains Russian, and it's clearly not working.
I've called file.imbue(loc) (and at this point, loc is correct, Russian_Russia.1251).
And buf is of type basic_string<wchar_t>
The reason I'm using basic_ifstream<wchar_t> is because this is a…
I'm attempting to target VC7.1 (visual studio 2003 sp1) from Visual Studio 2010.
I'm so close to setting it to work. But when I build, I get this error.
1------ Build started: Project: AnExample, Configuration: Release Win32 ------
1 Microsoft (R) 32-bit C/C++ Standard Compiler Version 13.10.6030 for 80x86
1 …
I have been looking for a way of modifying static strings stored in Windows .exe files in the .rdata section, however I haven't found a real way to do so yet.
The whole thing is too complicated to do by hand (in this case by a HEX editor) and so I wanted to know if you have a solution to do so.
Hi Folks,
I have some data in one of my mysql table stored as utf8. The data is some japanese text. I need to export it to excel. Could you tell how to do it?
Exporting by SELECT ... INTO OUTFILE returns some plain text file. I'm not sure how to read it back in excel so that japanese character would show…
I have this small script:
<?
header('Content-Type: text/javascript; charset=utf8');
$s="L\u00e1szl\u00f3 M\u00e1rton";
echo $s;
?>
The browser displays "L\u00e1szl\u00f3 M\u00e1rton"
and it should display László Márton.
What I am doing wrong?
table 'abc' data :
tid title
1 ????????????? ?.
2 ?????? ??????
$sql=mysql_query("select title from abd where tid='1'");
$row=mysql_fetch_array($sql);
$title = $row['title'];
echo $title;
OutPut displaying like this:
????????????????
But I want to display
…
Hi.
I'm working on multilingual Asp.NET MVC application. In url i need to use category name.
Is there any way how to convert i.e japanese text to its url safe equivalent?
Or should i use original text in url(www.example.com/??/? = www.example.com/product/car)?
I am trying to replace character (decimal value 197) in a UTF-8 file with character (decimal value 65)
I can load the file and put it in a string (may not need to do that though)
SS := TStringStream.Create(ParamStr1, TEncoding.UTF8);
SS.LoadFromFile(ParamStr1);
//S:= SS.DataString;…
Hi all,
I am csv.reader to pull in info from a very long sheet. I am doing work on that data set and then I am using the xlwt package to give me a workable excel file.
However, I get this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 34: ordinal…
HI all of u,, I have big problem until now no body helped me.
firstly I want to open XXX.vmg (this extension come from Nokia PC Suite) file and read it then write it in richtextbox. I wrote the code there is no error and also there is no reault in the richtextbox
here is my code
…
I have some code I've been using to get the current keyboard layout and convert a virtual key code into a string. This works great in most situations, but I'm having trouble with some specific cases. The one that brought this to light is the accent key next to the backspace key on…
Hai frnds i am bhoomi new to php,i am having having below problem in my coding please can you help anyone
1.first i want to open one word document which is having content and i wann to edit it
2.for that i am opening word document from the server and at that time its opening with…
hi
i writing stream in to file and stdout
but im getting somekind of encoding like this:
"\u05ea\u05e7\u05dc\u05d9\u05d8 \u05e9\u05e1\u05d9\u05de\u05dc \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05e1\u05d2\u05e0\u05d5\u05df \u05dc\u05d3\u05e2\u05ea\u05d9 \u05d0\u05dd…
I want to write an windows application in c#.net in which I have to save hindi language fonts to the databases and reading them straight away.I have searched lots of websites and read about localization but couldn't make it through.Please help me.
Thanks
JSON String:
{
"id":31896,
"name":"Zickey attitude - McKinley,
La Rosi\u00e8re,
21 ao\u00fbt 2006",
...
}
this causes an unterminated string in javascript.
my focus on solution is:
data.replace(/(\S)\1(\1)+/g, '');
or
…