Displaying 20 results from an estimated 10000 matches similar to: "Rails DB defaults to utf8 for mysql -- but unicode for postgresql"
2011 Sep 07
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
As was mentioned once before, the correct solution is to never use multibyte anywhere. Any Windows functions that currently return multibyte strings should be converted to their wide-string (unicode) equivalent, with the result converted to UTF-8.
> From: Nikola Smiljanic <popizdeh at gmail.com>
>
> I think I got it this time. I realized that ::open and ::stat work just fine with
2011 Sep 02
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
The patch should work for unicode filename, I just realized that it doesn't
work for unicode directories. FileSystemStatCache calls ::stat for
directories, and this doesn't work for utf8 input the same way ::open
doesn't work. I tried to replace it with ::_wstat but this function has a
different signature. I think we should take a different approach:
1. convert all command line input
2011 Sep 06
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
I think I got it this time. I realized that ::open and ::stat work just fine
with multibyte paths on windows so there's no need to change this code. The
only problem is llvm::sys::fs module which falsely assumes that input
strings are UTF8 encoded when they are in fact multibyte strings.
Now I really hope I haven't broken anything because llvm::sys::fs::exists is
called in a number of
2014 Oct 19
1
Writing UTF8 on Windows
Recent functionality in jsonlite allows for streaming json to a user
supplied connection object, such as a file, pipe or socket. RFC7159
prescribes json must be encoded as unicode; ISO-8859 (including
latin1) is invalid. Hence I would like R to write strings as utf8,
irrespective of the type of connection, platform or locale.
Implementing this turns out to be unsurprisingly difficult on windows.
2006 Feb 05
2
working with rails and unicode
I''m trying to get basic unicode support working using the "Iteration
A1" sample application from the "Agile Web Development With Rails"
book.
Following the "HowToUseUnicodeStrings" wiki document, I have made the
following changes:
config/environment.rb:
# Include your application configuration below
$KCODE = ''u''
require
2005 Apr 26
8
Problems with unicode filenames
I have a file server with windows and I am creating a new Fedora Core 3
+ Samba 3.0.10-1.fc3 file server...
But i have many, many files that have chars like ?, ?, ? in their
name... When I move the files to the Samba server, all that unicode
chars are changed to ?
I need a solution for that to move on, because my boss will not like to
stop using that chars...
Thanks for any help
Cristian
2011 Sep 01
3
[LLVMdev] [cfe-dev] Unicode path handling on Windows
Guys, welcome to the too weird i18n world!
We, Japanese, has got suffered for multibyte charset for 20 years.
I have added a comment in http://llvm.org/bugs/show_bug.cgi?id=10348 .
Of course I know, I don't think it would be a practical resolution.
FYI, it seems clang can retrieve mbcs path with s/CP_UTF8/CP_ACP/g.
E>bin\clang.exe -S なかむら\たくみ.c
なかむら\たくみ.c:4:2: error: #error
#error
^
1
2015 Jul 06
7
[PATCH 1/1] paint visual host key with unicode box-drawing characters
From: Christian Hesse <mail at eworm.de>
Signed-off-by: Christian Hesse <mail at eworm.de>
---
sshkey.c | 47 ++++++++++++++++++++++++++++++++++++-----------
1 file changed, 36 insertions(+), 11 deletions(-)
diff --git a/sshkey.c b/sshkey.c
index cfe5980..47511c2 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -44,6 +44,9 @@
#include <stdio.h>
#include <string.h>
#include
2006 May 02
2
Converting from UTF8 to ISO-8859-1 encoding
Please help,
I have followed the rails wiki to convert my rails application to use
UTF-8:
http://wiki.rubyonrails.com/rails/pages/HowToUseUnicodeStrings
I am able to succesfully cut and paste Unicode characters from other
page, successfully store and display unicode characters.
However, my client actually wants ISO-8859-1 encoding, which I''m
coming to realize is somehow
2010 Nov 26
0
[LLVMdev] request for windows unicode support
On Fri, Nov 26, 2010 at 4:00 AM, Jochen Wilhelmy <j.wilhelmy at arcor.de> wrote:
> No, this post was prompted since I switched to boost::filesystem version 3
> in my own code and llvm/clang 2.8
> was the only lib with no unicode support on windows.
> Will your code be api compatible to boost::filesystem?
No. boost::filesystem makes extensive use of exceptions, which LLVM is
2010 Nov 26
3
[LLVMdev] request for windows unicode support
On 25.11.2010 23:56, Michael Spencer wrote:
> On Nov 25, 2010, at 5:01 PM, Jochen Wilhelmy <j.wilhelmy at arcor.de
> <mailto:j.wilhelmy at arcor.de>> wrote:
>
>> Hi!
>>
>> Of course nobody wants to implement unicode support for windows
>> because windows should support an utf8-locale and windows is obsolete
>> anyway ;-)
>>
>> But
2010 Oct 20
1
how to connect to a remote PostgreSQL database from R on mac osx
Hello List,
I would like to connect to a postgreSQL database on a remote server and I am wondering what is the best package to do that. I have just installed RpgSQL, RPostgreSQL, Rdbi and RODBC.
The handiest to me is RPostgreSQL but I don't see how to connect to a remote server with it. For sure I can connect to remote server with RODBC, but since I am on a Mac OSX 10.6, I have quite
2011 Feb 22
4
Unicode in C++
On my CentOS box, in C++ programs, is there a way to print
Unicode characters?
Thanks,
Mike.
2011 Sep 01
3
[LLVMdev] [cfe-dev] Unicode path handling on Windows
AFAIK Clang internals do assume utf8, and llvm::sys::path converts strings
to utf16 on windows and calls W API functions.
If somebody would like to take a look at my changes and comment on them.
Here's a brief explanation of what I did:
- Convert argv to utf8 using current system locale for win32 (this is done
as soon as possible inside ExpandArgv). This makes the driver happy since
calls to
2010 Nov 25
2
[LLVMdev] request for windows unicode support
Hi!
Of course nobody wants to implement unicode support for windows
because windows should support an utf8-locale and windows is obsolete
anyway ;-)
But there is a simple solution: use boost::filesystem::path everywhere you
use file names and paths, for example in clang::FileManager::getFile.
With version 3 opening a file is easy: std::fstream file(path.c_str()).
Internally
2004 Jan 21
2
unicode conversion
Hi,
We have windows XP and NT workstations. They are configured to support
french language.
Also we export samba 2.2.8 shares through a solaris 8 machine.
But these samba shares are NFS mounted file systems that come from a NAS
(Celerra's EMC)
In smb.conf:
- Character set parameter is not set.
- Codepage is 850
In the NAS file server the parameter is set to unicode.
In windows
2011 Sep 02
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
Nikola,
Your patchset does not work;
e>bin\clang.exe -S なかむら\たくみ.c
error: error reading '邵コ・ェ邵コ荵昴・郢ァ蝎らクコ貅假ソ・邵コ・ソ.c'
1 error generated.
- Would it be not enough in somewhere?
I suspect clang still might be pathv1-dependent.
(I guess, pathv1 would assume ansi)
- raw_ostream does not handle utf8, but ansi, on win32.
I would like to propose;
- converting utf8 and utf16
2005 Aug 28
7
Unicode support in FXRuby 1.6
All,
As some of you know, Jeroen has added support for Unicode strings in
the unstable development version of FOX (version 1.5). I''m trying to
plan ahead to decide how best to support this for FXRuby 1.6, but I
don''t really know anything about Ruby''s support for Unicode or i18n in
general. If you''re familiar with this topic (how/if Ruby deals with
Unicode
2007 Aug 13
3
unicode
Salut alex, j''ai essayer d''encoder quelques fichiers pour faire des test. Il y a des sigles comme "€" que je ne peut pas encoder. le problème c''est que quand j''ouvre un fichier.txt par exemple et qu''il contient ce sigle, le contenu du fichier ne s''affiche pas.
Compter-vous insérer ces sigles par la suite que l''on puissent les
2011 Sep 07
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
On Wed, Sep 7, 2011 at 12:20 AM, Nikola Smiljanic <popizdeh at gmail.com> wrote:
> So what are you exactly saying? Somebody proposed using GetCommandLine
> instead of using argv directly. And what about my other points about ::open
> and ::stat?
Because of the way Windows works, the only fully correct solution is
to never touch the native charset, and keep everything in UTF-8/16