How to display the Japanese character
Hi
Im trying to display the Japanese characters in pdf report(Using iText Report). I have the method as follows which is encoding the characters in a particular format in my say, Reports.java
public String stringFormat( String strData ) throws Exception {
String result=null;
try{
result = new String(strData.toString().getBytes("Shift-JIS"),"UTF-8");
}catch(Exception e) {}
return result;
Im calling this method to display a category code in another one java file like
Phrase colm_2 = new Phrase(report.stringFormat(strCatgdes),font);
But Im nt getting the correct japanese chars, instead im seeing like this ??????? in my pdf report. I tried with different encoding char set like "ISO2022JP,EUC_JP,SJIS,Shift-JIS,MS932,Cp33722". All giving the wrong characters.
Can anyone help me to solve this issue?
Thanks in Advance.
result = new String(strData.toString().getBytes("Shift-JIS"),"UTF-8");Priceless. So you take a string, convert it to Shift-JIS bytes, and then read the Shift-JIS bytes, pretending they're UTF-8. And you really expect that to work?
Strings are always in UTF-16, so there shouldn't be any need for you to do anything.
1) Make sure you read your ressources with the correct encoding
2) Make sure your font can actually display the letters
Similar Messages
-
How to display the special character ' ' ?
I have defined a button with the name '|<<', but in the runtime, it's displayed as '|< ;< ;', then how can i display '<' in runtime?
Message was edited by:
bo wangHi bo wang,
I will suggest a solution, take the properties of the button in Layout mode, Click the Display Tab, remove everything in the Label text box, click the Formula button right of the Label text box, use this function TRIM('|<<')
Save it, deploy & run ,.... Check the output now.
Regards,
Shemim -
How to type the BACKSLASH character - "\" with a Japanese Keyboard?
Hello Everyone,
I bought my MacBook here in Japan so I have the Japanese Keyboard. I need to know how to type the BACKSLASH "\" character. What I'm doing right now is that I just copy-paste the backslash character to my programs. It's a little tedious and so not efficient so I hope you guys can help me. Thank you in advance!
Regards,Does this help?
http://en.wikipedia.org/wiki/Keyboard_layout#Japanese -
How to display the text as a Bold in the Text Element of a Smart Form
Hi,
I created one Smart Form.
In that i created the Text element.
I provide some data also in that.
It is coming as a MS WORD.
I executed my smart form.
Customer Number: &WA_KNA1-KUNNR&
it display the data of the particular customer.
But i need to display the Customer Number as BOLD or else Increase the Size.
For this also I created one SMARTSTYLE.
In that I created the Paragraph and Character Formats also.
Now i assignee that SMARTSTYLE in the Output Option Tab of the Text Element also.
But i unable to get the CUSTOMER NUMBER in Bold.
In MS WORD we have BOLD button.
I selected the Text and Press the BOLD button. At that time it is Highlighted.
Whenever i press the SAVE Button.
Then it is not saved with BOLD.
It is coming in Normal Format.
In the ECC 6.0. I am unable to get the Text as a BOLD.
This text Element is like a MS WORD.
Can you please tell me how to display the Data with BOLD. please tell me. I am unable to get that one.
Thank You.
Regards,
B. Krishna.Hi,
Check where u have given BOLD. In character Format or in Paragraph format.
In SMART FORM,
1. Change to OLD EDITOR if u are confused with the new one.
(This can be done by clicking the button left to new editor ).
2. If it is PARAGRAPH FORMAT,
Give the name of paragraph format in the editor.
P1 &WA_KNA1-KUNNR&
If it is CHARACTER FORMAT,
<C1> &WA_KNA1-KUNNR&
Thanks,
Nithya. -
How to display a particular character of a word
Hi,
can anyone tell me how to display a particular character of a word in smart forms,Ex:suppose word is India and i want to display character d..
Thanks in advance.
Rajeshplease look at the below explanation:
DATA: VAR TYPE CHAR20.
VAR = 'INDIA'.
WRITE:/ VAR(3) - THIS WILL PRINT FIRST THREE CHARACTERS OF THE INDIA SO THE OUTPUT WILL BE : IND
WRITE:/ VAR+3(1) = THIS WILL PRINT 1ST CHARACTER AFTER FIRST 3 CHARACTERS SO THE OUTPUT WILL BE : I
COPY REQUIRED CHARACTERS IN ANOTHER VARIABLE.
DATA: VAR2 TYPE CHAR10.
VAR2 = VAR+3(2) . -
In sap scripts how to display the driver program
Hi,
I Want to know the sap scripts How to display the output to driver programHi,
Go to NACE Transaction.
Select application for ex: if sales V1.
Click on output types.
Select the output type for ex : BA00
Double click on Processing routines.
There you can find the Driver Program name and Script/smart form name.
Reward if useful.
Thanks,
Raju -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
How to display the header data on different position in alv report
hi all,
how to display the header data on different position in alv report.
for example ,
customer name
xxxx xxxx
vendor name street
xxxx xxxx xxxxx
pls help me .hi
as per my understanding you need to trnasfer header internal table data to pdf..
please check the following links for internal table to pdf..
Convertion of Internal table data to PDF
This link is related to ur issue
Re: how to insert the calling of the FM: OTF to PDF
Thanks -
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS
HI,
HOW TO DISPLAY THE TEXT ON A PARTICULAR PAGE IN SAPSCRIPTS?in ur script main window
/: IF &TTXSY-PAGE& = 15.
ur text or standard text
/: ENDIF.
use this.
hope it helps if any issues revert back -
How to display the Buyer's signature in PO BI Publisher Report
Hi,
How to display the Buyer's signature dynamically in XMLP Purchase Order Report.
Please anybody help on this.Your help greatly appriciated.Hi All once again
I was able to display the signature on XMLP AP Check Print Report by went through the follwoing Tim's blog http://blogs.oracle.com/xmlpublisher/2006/04/13#a12
But in Purchase Order report requirement is different. We need to display the Buyer's signature on XMLP PO Report. So, where is the best place to store the buyers signatures.(For example if we have 10 buyers with 10 signatures respectively then after approving the PO, we should display that particular buyer's signature in PO XML Publisher report).We observed that in byuers & User's form there is no attachment feature enabled.
This is an urgent requiremnt. Please help/guide/suggest to resolve this issue.
Thanks in advance. -
How to display the results in order by based on search value
Hi All,
how to display the results in the below order.
CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200))
INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK');
INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)');
INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)');
INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA');
INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI');
INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE');
SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0
output:
SONGID TITLE
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
11 CICCONE, MADONNA (CA)
12 DALLIN, MADONNA LOUISE/STOCK
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
16 MIRWAIS AHMADZAI, MADONNA
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
18 MADONNA (CA),CICCONE
Expected output :
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
...if user searches with 'MADONNA' , I have to display the results like title starts with 'MADONNA' first then rest of the records.
Please let me know is it possible to display the results in that order.
Regards,
RajasekharThis may be a bit more accurate:
SQL> SELECT *
2 FROM TEST
3 WHERE INSTR (TITLE, 'MADONNA') > 0
4 ORDER BY INSTR (TITLE, 'MADONNA')
5 ,TITLE
6 ;
SONGID TITLE
13 MADONNA
14 MADONNA (A)/ AHMADZAI, MIRWAIS (C)
15 MADONNA (CA)
18 MADONNA (CA),CICCONE
12 DALLIN, MADONNA LOUISE/STOCK
11 CICCONE, MADONNA (CA)
17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI
16 MIRWAIS AHMADZAI, MADONNA
10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) -
How to display the fields in ALV Output without using Field catalog?
How to display the fields in ALV Output without using Field catalog?
Could you pls tell me the coding?
Akshitha.Hi,
u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
data: itab type table of mara.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = itab
CHANGING
ct_fieldcat = lt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
*Pass that field catalog into the fillowing FM
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_grid_title = 'REPORTING'
is_layout = gt_layout
it_fieldcat = lt_fieldcat[]
tables
t_outtab = itab. -
How to display the proxy settings for a specific group of servers in an OU ?
Hi,
Can anyone here please assist me in how to display the value of Proxy server settings from the computers in a specific OU member ?
$Computers = Get-ADComputer -Filter * -SearchBase "OU=Terminal Servers,OU=Servers,DC=domain,DC=com" | Where-Object { Test-Connection $_.Name -Count 1 -Quiet }
ForEach ($Computer in $Computers) {
| Export-csv "C:\Proxy-Setting-Results.csv" -Append -NoTypeInformation -UseCulture
I've done similar script for some other task but not sure how to do this for Proxy setting.
Thanks.
/* Server Support Specialist */Proxy settings are not set in Active Directory
The below code works for 2003 servers and Win XP
$colItems = get-wmiobject -class "Win32_Proxy" -namespace "root\CIMV2" `
-computername $env:computername
foreach ($objItem in $colItems) {
write-host "Caption: " $objItem.Caption
write-host "Description: " $objItem.Description
write-host "Proxy Port Number: " $objItem.ProxyPortNumber
write-host "Proxy Server: " $objItem.ProxyServer
write-host "Server Name: " $objItem.ServerName
write-host "Setting ID: " $objItem.SettingID
write-host
You can try checking the registry values- Works in 2008 + and Windows 7
Get-Item 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
or use netsh
netsh winhttp show proxy -r <remotemachinename>
Regards Chen V [MCTS SharePoint 2010] -
How to display the time 00:00:00 as blank?
Dear Friends,
I have created a new field GDF_9000_CREATED_AT in the normal screen (dynpro), the format is TIMS, however, when there is no value for it, is always display like "00:00:00" on the screen.
So how to display the time 00:00:00 as blank in the normal screen (dynpro) when there is no value for it?
Thanks a lot!!In screen PBO module:
LOOP AT SCREEN.
if screen-name EQ 'my_time' AND my_time EQ time_zero.
screen-invisible = 'X'.
screen-active = 0.
MODIFY SCREEN.
endif.
ENDLOOP.
I don't try this, but i think is true...
Edited by: Marco Modenese on May 7, 2009 10:36 AM
Edited by: Marco Modenese on May 7, 2009 10:36 AM -
How to display the name of my metric in a PivotTable.
Hi I am working with OBIEE Plus
How to display the name of my metric in a PivotTable.
Why when I add a field to the sector of the measures in a PivotTable field name disappears.
Help please
Thanks beforehandWhere are your 'measure labels' ? These show what the metric is.
Maybe you are looking for
-
MSI K7N2 Delta ILSR (MS 6570) trouble With ATA card
Hi, i have major trubble. Ihave two 300gb, two 120gb and two 80gb harddrives + 1 DVD burner and 1 CD burner with ultra DMA 100 PCI card and it works fine without using the sata or ide3 raid function. I purchased an new PCI ATA 133 card and the system
-
Problem on install 8i(8.1.7)SE on WIN2000
Dear all, I find a problem on creating a database of 8i(8.1.7)SE on WIN2000. After I create a new service for the database by using ORADIM, I find a ERROR message in SVRMGRL SVRMGRL> startup nomount pfile=f:\oracle\admin\init.ora ORA-00439: feature n
-
Itunes freezes when I connect my 4th generation ipod
I plug in my ipod and itunes immediately freezes (program not responding) I have checked using my 4th Generation ipod that it's software is up to date (running 6.1.6) and have done the same with itunes (11.3) Thoughts?
-
Hi there, when I re-linked .svg assets in my desktop, Muse encountered the following error and closed. "At EndUserAction an object (U11758 ImageFrame) doesn't have an owner?!" Upon re-opening muse I cannot file/save as, the same error continues to
-
.CP file storage (Captivate 3) HELP!
OK. This is my first post. I have been working with Cap 3 for about 6 months. I love most of this product. However we are a large company and we have only 2 licenses. We are responsible for training about 400 sales people nationwide. My partner and I