Unicode encoding
Hi,
We have a Non-Unicode System,Single Code Page configuration
TCPDB: Database code pages
1100 SAP internal, like ISO 8859-1 (00697/00819)
We have the processor architecture Big Endian 4102
Oracle DB NLS_CHARACTERSET WE8DEC
What Unicode encoding will be using in this scenario?
(UTF-8/CESU-8/UTF-16/UCS-2/UCS-4)?
Regards,
Etsg
You can try this:
Quit Mail, open Terminal and type:
defaults write com.apple.mail NSPreferredMailCharset "UTF-8"
Normally using a macron or any diacritics beyond what are in French and German should probably change you messages to UTF-8 automatically.
Similar Messages
-
Not able to display data in different columns using Unicode encoding
Hi,
Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
Please let me know how to display data in different columns using Unicode encoding in Excel sheet.Hi Venkat,
After extracting data into DSO check the request whether active or not.
Check data in DSO in contents.
If is there any restrictions on info providers in Queries.
Let us know status clearly.......
Reg
Pra -
Not able to display data in separate columns using Unicode encoding
Hi,
Iam using Unicode encoding in my Java appln to support Japanese characters while downloading CSV report. But using the Unicode encoding displays all data in the first column of Excel sheet.
Please let me know how to display data in different columns using Unicode encoding in Excel sheet.
This is an urgent need. Please help me out.Hi,
I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
eg:
select
case
TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2)
= :P15_EV_LCL
then
span style="background-color:lightgreen"
|| TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
else
span style="background-color:yellow"
|| TRUNC(
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
end "Effort"
from actuals Z
If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
Please suggest
Thanks
Sudhir
Edited by: Sudhir_N on Mar 23, 2009 10:00 PM -
How to upload Unicode encoding files from web?
Hi everyone,
I do not manage to upload Unicode encoding CSV files from web. Currently I use class CL_HTMLB_MANAGER to upload file from web. It works fine with ANSI encoding files, but file content is not uploaded correctly with Unicode encoding files. Especially I get innumerable characters u201C#u201D throughout the string that contains the file content (For example instead of u201CSAP CATALOG CSV 2.0u201D I get u201CÿþS#A#P# #C#A#T#A#L#O#G# #C#S#V# #2#.#0#u201D).
I did not find in forums a solution to my issue that is why I am now asking for your help.
How can I upload Unicode encoding files from web? Do you know another way to upload file from web that is Unicode compatible?
Remark: I tried to upload Unicode encoding files from SAP GUI using function module GUI_UPLOAD and upload is successful.
Here is the code that I currently used.
DATA: lr_event_ex TYPE REF TO if_htmlb_data,
fileupload TYPE REF TO cl_htmlb_fileupload,
lr_upload_model TYPE REF TO /ccm/cl_bsp_upload_model,
lr_error TYPE REF TO /ccm/cx_file_upload.
lr_event_ex = cl_htmlb_manager=>get_event_ex( runtime->server->request ).
IF lr_event_ex->event_name = 'fileUpload' AND lr_event_ex->event_type = 'upload'.
fileupload ?= lr_event_ex.
FREE lr_event_ex.
* get the model
lr_upload_model ?= me->get_model( model_id = 'mupl' ).
IF NOT fileupload->file_name IS INITIAL.
* upload data
TRY.
CALL METHOD lr_upload_model->upload_data
EXPORTING
iv_file_name = fileupload->file_name
CHANGING
cv_xcontent = fileupload->file_content.
CATCH /ccm/cx_file_upload INTO lr_error.
ENDTRY.
FREE fileupload.
ENDIF.
ENDIF.
Thank you in advance for helping me.
Best regards,
VanessaHi There,
Please check the details for the same.
Link: http://helpx.adobe.com/creative-cloud/help/sync-files.html#Sync or upload files
Troubleshoot sync:
Error: "Unable to sync files"
Creative Cloud File Sync | Known issues
Thanks,
Atul Saini -
Converting String to unicode encoded string
Hi,
I would like to convert non-ascii characters in a String or the whole string to unicode encoded character.
For example:
If i have some japanese character, I would like it to be converted to /uxxxx
How can i do this? I don't want the exact character, as I am able to get that using getBytes("encoding format"). All i want is code point representation of the non ascii unicode characters.
Any help to do this will be appreciated.
Thanks in advance.I tried to do what that but I am not sure whether that is right or not.
String inputStr = "some non ascii string";
char[] charArray = inputStr.toCharArray();
int code;
StringBuffer sb = new StringBuffer();
for(int i = 0; i < charArray.length; i++)
code = (int) charArray;
String hexString = Integer.toHexString( code );
sb.append(hexString);
System.out.println("Code point is "+sb.toString());
My above code does not work as expected. Could you please tell me where i am goofing?
Thanks! -
Default Unicode encoding on SAP ERP?
Hello there! Who could help me out and tell me where I can find official SAP information about what is the default Unicode encoding if I choose to install SAP ERP Unicode system. Is it UTF-8 or UTF-16? Installer does not ask this question, it just asks you to pick "Unicode" or "Non-Unicode". How can I find out if the database will be UTF-8 or UTF-16? Tried to find documents but could not find any. Any links to any official documentation that has the answer would be greatly appreciated!
Hi Anand,
Seems like you failed to complete the pre-installation steps...
As far as i can see there a Mount access failure, meaning the shares or mounts necesary for the installation are either unavailable or the user <sap>sid don't have enough rights to use it.
Check all your pre-intallation steps (included on the installation guide available at SAP Marketplace) and try it agian.
regards
Juan -
Help,DataInputStream and Unicode encoding problem
Hello,everybody
I am writing a small software for fun,but an problem about Unicode encoding stopped me. I tried to parse a file including integers,floats and Unicode characters(not UTF-8 but some other encoding type). I looked for the JDK documentation and I found that the class DataInputStream( implementing the interface DataInput) fitted my requirement best, then I tried but the Unicode characters are not read correctly( messy codes,only '????????').
would you please help me? thanks a lot :-)the class DataInputStream has the methods useful to me, but find there is no method to set the encoding format ,both in DataInputStream and argument types used in its constructor:
FileInputStream fis=new FileInputStream(fileName);
DataInputStream dis=new DataInputStream(fis);
String line =dis.readLine(); System.out.println(line);
// only "????????" output as result :-(
I wonder how to set the encoding type,or another class.
if I do it this way,it works,but there is no methods such as "readFloat","readInt",etc, so it's not what I want :
FileInputStream fis=new FileInputStream(fileName);
InputStreamReader read=new InputStreamReader(fis,"GB2312");
BufferedReader reader=new BufferedReader(read);
DataInputStream dis=new DataInputStream(fis);
String line = reader.readLine();
System.out.println(line);
thank you for your repley! -
hello,
possibly this is very simple, so dont laugh. an application i'm writing displays an XML document as a JTree for editing. Within the XML document I have hardcoded Unicode IPA extensions, which show up perfectly in the JTree and JTextAreas. The problem is I dont know how to copy the original Unicode encoding into another document. I want to be able to write the original encoding (something like ʃ) to another file. As it is, it seems to be getting converted into a string and then when I copy it, the new document doesnt contain the Unicode and wont display the symbols. Thanks for any helpI have the similar problem as you.
I try to write an xml file encoded with UTF-8 to Unix Solaris. I have set locale to UTF-8 on Unix . I compile my java source under Windows machine with ant which javac is encoded in UTF-8. Database(Informix) is also set to UTF-8. I can enter special characters such as Spanish from web page and save to Database and bring it back to web page. It all displays correctly. But when i try to get the data with special characters from database and write a xml file into Unix and I use different editors such as Word, Notepad, Unix vi, UltraEditor to open this xml file, the content is all garbage. My code to write the xml file is :
StringBuffer xml = new StringBuffer();
xml.append(data from database);
FileOutputStream fw = new FileOutputStream("test.xml");
log.info("-----------System Encoding: " + System.getProperty("file.encoding") + "---------");
OutputStreamWriter writer1 = new OutputStreamWriter(fw, "UTF-8");
writer1.write(xml.toString());
writer1.close();
the log file displays System Encoding: UTF-8 -
String unicode - Encoding used ?
Hi,
Can some one please provide me information on how is it working?
1) String uses unicode. Does it just stores unicode equivaluent or it
uses any encoding for storing the unicode value. I have got various
responses ranging from UTF-8 , UTF-16 to default encoding of the system.
2) If it doesn't uses default encoding of the system then please let me know how the following works
String x = "Some japanese character" // read from file using default encoding
Runtime.exec("echo" + x "> file") ; //
Who does the conversion from String 's encoding to platforms default encoding?
If the string doesn't uses encoding and stores it as unicode equivaluent , then also who does the converstion from unicode equivalent to platform's local encodinghttp://java.sun.com/docs/books/tutorial/i18n/text/index.html
-
HTTPService returns non-unicode encoding
Hi there!
Using HTTPService I am loading a page which is encoded in http://en.wikipedia.org/wiki/Windows-1251 charset.
The result type of my service request is "text".
The problem is, that air does not convert the characters in the request's result string into their valid Unicode counterparts (e.g. charCodeAt stays <= 255) and thus prints them invalid onscreen.
Is there a way to convert or tell air to expected a certain codepage for a HTTPService's result?
Thanks in advanceOw, already found the answer
// convert s : String in windows-1251 format to unicode (sUnicode)
var ba:ByteArray = new ByteArray();
for(var i : int = 0;i<s.length;++i)
ba.writeByte(searchResult.charCodeAt(i));
ba.position = 0;
var sUnicode : String = ba.readMultiByte(ba.length, "windows-1251"); -
Unicode Encoding as Default, Please
Gang,
I post to discussion groups on Buddhism which require me to use diacritics and thus use the American Extended keyboard. It's annoying to me to have to remember to change my "Message Text Encoding" to Unicode every single time I do this. Surely there is some way to set this universally or permanently.
Does anyone know how I might do this?
Thanks,
FranzYou can try this:
Quit Mail, open Terminal and type:
defaults write com.apple.mail NSPreferredMailCharset "UTF-8"
Normally using a macron or any diacritics beyond what are in French and German should probably change you messages to UTF-8 automatically. -
How can I import files in "Windows Cyrillic" encoding into itunes library? In itunes all these files have absolutely undescriptable names and all other information, so manually renaming requires.
I think you need to convert them to Unicode somehow. See if this note helps:
http://homepage.mac.com/thgewecke/mlingos9.html#itunes -
Hi all,
I have a file which contain data in UTF-16BE format, i want to send that data to SMS, but to send data in SMS i usually have in following format
cmpmessage="\u0645\u0639\u0632\u0632\u0635\u0627\u0631\u0641"
Now when i copy data from file it contains some unreadable format.
Can any one guide that how i can convert that file in \u sequences.
Regards,
imranhi,
when i send message by this code it shows boxes on mobile
in = new InputStreamReader(new FileInputStream(file),"UTF-16BE");
buf_reader = new BufferedReader(in);
line = buf_reader.readLine();
but when i send message by following line mobile shows proper arabic
line="\u0645\u0639\u0632\u0632\u0635\u0627\u0631\u0641";
Regards,
imran -
UTF-8 encoding not working in MSIE
We're in the process of migrating to Sun Web Server 6.1 2005Q4 SP5 from iPlanet 4.1. The Unicode encoding in JSPs for special characters rendered correctly in browsers with iPlanet 4.1. But in 6.1, I had to add this directive to obj.conf for it to work in Netscape 8 (Firefox engine):
ObjectType fn="set-default-type" charset="utf-8"However, MSIE still doesn't render the special characters correctly.
I tried the suggestions in http://swforum.sun.com/jive/thread.jspa?forumID=16&threadID=48171
and I tried this:
ObjectType fn="match-browser" browser="*MSIE*" set-srvhdrs="Content-type: text/html;charset=utf-8"with no success.
Any ideas?
Thanks!1) Here's a sample snippet from the JSP:
items.add(new DisclaimerInfo("\342\200\240", "The award is2) Here's the first few lines of the page in the browser's View Source:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />3) Here's the interesting part of obj.conf:
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="DynamoNormalizeURL"
NameTrans fn="DynamoPath" path="/messaging"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="/app/sunone/ns-icons" name="es-internal"
NameTrans fn="pfx2dir" from="/SearchServer" dir="/www/site/content/search/SearchServer/wwwtemplates"
NameTrans fn="pfx2dir" from="/Scripts" dir="/www/site/cgi-bin" name="cgi"
NameTrans fn="pfx2dir" from="/cgi-bin" dir="/www/site/cgi-bin" name="cgi"
NameTrans fn="document-root" root="$docroot"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index" index-names="index.jsp,index.html"
ObjectType fn="set-default-type" charset="utf-8"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service fn="DynamoService" method="(GET|HEAD|POST)" type="dynamo-internal/*"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="TRACE" fn="service-trace"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Error fn="error-j2ee"
Error fn="send-error" reason="Not Found" path="/www/site/content/error/404.html"
Error fn="send-error" reason="Server Error" path="/www/site/content/error/servererror.html"
AddLog fn="flex-log" name="access" iponly="1"
</Object>4) In MSIE, the snippet from the JSP renders as:
<small letter A with circumflex><Euro sign> The award is...
5) Instead, it should render as (which it does in Netscape/Firefox):
<cross> The award is... -
Problem in reading Text file(Unicode)
Hi
i am trying to read a tab delimited text file which has Unicode Encoding
try{
BufferedReader reader = new BufferedReader(
new InputStreamReader(
new FileInputStream(
"C:/Documents and Settings/divya.parkash/Desktop/Testting.txt"),
"UTF8"));
int buf;
while((buf=reader.read())>-1){
if (buf!=0)
str.append((char)buf);
System.out.println(str.toString());
catch (Exception e){System.out.println("Res: "+e);}
}but i am geting two ?? marks before the text
??STD_BIN HI 0 100 U10 21010100 66.550 20.000 1.000 1.200 1.200 1.300 0 100 RACKED 0 0
STD_BIN LO 21010200 100 U10 21010200 66.550 20.000 3.000 1.200 1.200 1.300 0 100 RACKED 0 0
STD_BIN LO 21010300 100 U10 21010300 66.550 20.000 5.000 1.200 1.200 1.300 0 100 RACKED 0 0
STD_BIN LO 21010400 100 U10 21010400 66.550 20.000 7.000 1.200 1.200 1.300 0 100 RACKED 0 0
STD_BIN LO 21010500 100 U10 21010500 66.550 20.000 9.000 1.200 1.200 1.300 0 0 RACKED 0 0
STD_BIN LO 21010600 100 U10 21010600 66.550 20.000 11.000 1.200 1.200 1.300 0 0 RACKED 0 0So please suggest me the reason and solutionHi
calvino_ind
this is the output i am getting by keeping buf as int.......
553365533838468956673789727394899494848985494895049484948494848932323232323254544653534893232323232325048464848489323232323232324946484848999932323232323232494650484893232323232323249465048489323232323232324946514848948932494848982656775696894894813108384689566737897679950494849485048489949484898549489504948494850484893232323232325454465353489323232323232504846484848932323232323232514648484899993232323232323249465048489323232323232324946504848932323232323232494651484894893249484898265677569689489481310838468956673789767995049484948514848994948489854948950494849485148489323232323232545446535348932323232323250484648484893232323232323253464848489999323232323232324946504848932323232323232494650484893232323232323249465148489489324948489826567756968948948131083846895667378976799504948494852484899494848985494895049484948524848932323232323254544653534893232323232325048464848489323232323232325546484848999932323232323232494650484893232323232323249465048489323232323232324946514848948932494848982656775696894894813108384689566737897679950494849485348489949484898549489504948494853484893232323232325454465353489323232323232504846484848932323232323232574648484899993232323232323249465048489323232323232324946504848932323232323232494651484894893232324898265677569689489481310838468956673789767995049484948544848994948489854948950494849485448489323232323232545446535348932323232323250484648484893232323232324949464848489999323232323232324946504848932323232323232494650484893232323232323249465148489489323232489826567756968948948131083846895667378976799504948494855484899494848985494895049484948554848932323232323254544653534893232323232325048464848489323232323232495146484848999932323232323232494650484893232323232323249465048489323232323232324946514848948932323248982656775696894894813108384689566737897679950494849485648489949484898549489504948494856484893232323232325454465353489323232323232504846484848932323232323249534648484899993232323232323249465048489323232323232324946504848932323232323232494651484894893232324898265677569689489481310
Maybe you are looking for
-
Win-key / PrtScr No Longer Working
I use the Win-key PrtScr-key. It would take a snap shot of my desktop and automatically save it into a folder called //C:USERS\DOUGLAS\PICTURES\SCREENSHOTS. This folder is located in C\Pictures. I used this combination forever, but it just stopped
-
How to find out the top 20 queries used in a week
Hi Guru's, I would like to know how to gather the information regarding the Top 20 queries used in the system per week, by a multicube. Note: I am using BI 7.0 and also Statistics are turned on. The aim is to pre-calculate these queries at night to h
-
I have no idea why they disappeared. I didn't have a crash. The latest patterns from the last 2-3 months are gone now. I use this alot. How can I prevent? Might they be on my backup time machine?
-
Adobe Acrobat 9 Pro V9.4.0 Win7 Pro x64 Problem: In Initial View, can you set defaults for Navigation tab, Page layout, and Magnification? Every time Acrobat scans a document, I have to go to Initial View to set Navigation tab, Page layout, and Magni
-
HT4623 Landscape feature on iphone doesn't work after OS 7 download. HELP.
The landscape feature on iphone doesn't work after OS 7 download. How do i fix it?!