|
by: jamie |
last post by:
I have a file that was generated on a customers computer which is not
using the Windows default text encoding but uses Japanese(Shift-JIS)
encoding.
If I open the file in notepad the data looks normal but my application
can not read in the data properly (Line breaks are not what is expected)
Is there a way to translate a file to the windows default text encoding?
Also, is there an API to determine the which encoding a system is using?
|
by: Merav |
last post by:
I'm running a java application from Eclipse.
Looking at the system properties I get the following values:
file.encoding = Cp1255
user.language = iw
user.country = IL
Than I'm building a jar for the application and running the jar.
Looking at the system properties I get the following values:
file.encoding = Cp1252
user.language = en
|
by: Matthew Mueller |
last post by:
I noticed in python2.3 printing unicode to an appropriate terminal
actually works. But using sys.stdout.write doesn't.
Ex:
Python 2.3.4 (#2, May 29 2004, 03:31:27)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> sys.stdout.encoding
'UTF-8'
>>> u=u'\u3053\u3093\u306b\u3061\u308f'
|
by: Gaia C via .NET 247 |
last post by:
Hi All,
How can i found out at what encoding the file was saved?
I tried usign GetPreamble(), but for this i should already create a stream which get an encoding...
StreamReader sr = new StreamReader(path);
sr.CurrentEncoding.GetPreamble();
any idea?
Thanks,
|
by: Xarky |
last post by:
Hi,
I am downloading a GIF file(as a mail attachement) with this file
format, Content-Transfer-Encoding: base64;
Now I am writing the downloaded data to a file with this technique:
streamWriter = new StreamWriter(@startupPath+"\\"+filename, false);
streamWriter.WriteLine(data);
I am not specifying any file Encoding. When I try to open the file
|
|
by: Thomas Podlesak |
last post by:
I need a function to determine if a file is utf-8 encoded. I found the
inconv- and recode-functions. But they only seem to convert files. Isn´t
there any php-function similar to the 'file'-command on linux?
|
by: tomislav.vujnovac |
last post by:
I need to generate xml file with data from ms sql server.
That xml is used in some third party java program.
That program need xml file that is saved as "windows-1250" but in first
line is: "<?xml version="1.0" encoding="UTF-8"?>"
When I make xml file as UTF-8, I can not open it with that java
program, but when I make as "windows-1250" than I can open it but I can
not see CE characters
Tomislav
|
by: Edward K. Ream |
last post by:
Following the usual cookbook examples, my app parses an open file as
follows::
parser = xml.sax.make_parser()
parser.setFeature(xml.sax.handler.feature_external_ges,1)
# Hopefully the content handler can figure out the encoding from the <?xml>
|
by: Sun |
last post by:
Hi everyone
. I have two files named a.txt and b.txt.
I open a.txt with ultraeditor.exe. here is the first row of the file:
neu für
then I switch to the HEX mode:
00000000h: FF FE 6E 00 65 00 75 00 20 00 66 00 FC 00 72 00 20 00 0A
00 0D 00
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|