Double Byte hyphen appear as "?" pls Help
HI,
I have deployed my app on websphere6.0 on solaris machine.
I am retriving from database and dispalying the data containing doublebyte hyphen (�|) in jsp but it appear as "?".
Same app deployed on windows machine works fine...
i have also deployed it on weblogic 8.0 it appear as a "?"
Can any one help
if you did a reset of the iphone the usage time will appear as -- until the next time the phone is charged to 100% - then it should start showing up again
Similar Messages
-
Trying to delete an app from my IPad 2 IOS8. I press on the app, all the apps wobble but the option to delete is not appearing. Pls help
Assuming you aren't attempting to delete built in Apps, go to: Settings - General - Restrictions - Deleting Apps = ??
i need help deleting apps on my iphone 6 When I tap and hold it jiggles but a "x" doesnt appear. Any ideas -
Double byte characters in a String - Help needed
Hi All,
Can anyone tell me how to find the presence of a double byte ( Japanese ) character in a String. I need to check whether the String contains a Japanese character or not. Thanx in advance.
Ramya/** returns true if the String s contains any "double-byte" characters */
public boolean containsDoubleByte(String s) {
for (int i=0; i<s.length(); i++) {
if (isDoubleByte(s.charAt(i)) {
return true;
return false;
/** returns true if the char c is a double-byte character */
public boolean isJapanese(char c) {
if (c >= '\u0100' && c<='\uffff') return true;
return false;
// simpler: return c>'\u00ff';
/** returns true if the String s contains any Japanese characters */
public boolean containsJapanese(String s) {
for (int i=0; i<s.length(); i++) {
if (isJapanese(s.charAt(i)) {
return true;
return false;
/** returns true if the char c is a Japanese character. */
public boolean isJapanese(char c) {
// katakana:
if (c >= '\u30a0' && c<='\u30ff') return true;
// hiragana
if (c >= '\u3040' && c<='\u309f') return true;
// CJK Unified Ideographs
if (c >= '\u4e00' && c<='\u9fff') return true;
// CJK symbols & punctuation
if (c >= '\u3000' && c<='\u303f') return true;
// KangXi (kanji)
if (c >= '\u2f00' && c<='\u2fdf') return true;
// KanBun
if (c >= '\u3190' && c <='\u319f') return true;
// CJK Unified Ideographs Extension A
if (c >= '\u3400' && c <='\u4db5') return true;
// CJK Compatibility Forms
if (c >= '\ufe30' && c <='\ufe4f') return true;
// CJK Compatibility
if (c >= '\u3300' && c <='\u33ff') return true;
// CJK Radicals Supplement
if (c >= '\u2e80' && c <='\u2eff') return true;
// other character..
return false;
/* NB CJK Unified Ideographs Extension B not supported with 16-bit unicode. Source: http://www.alanwood.net/unicode */
} -
When someone called me, i tried to add his phone number into my contact, but the keyboard did not appear when i wanted to key in the names or other details.
Hi, tenangaku.
Thank you for visiting Apple Support Communities.
I would recommend closing all applications in multitasking and power cycling the device.
iOS: Force an app to close
http://support.apple.com/kb/ht5137
Cheers,
Jason H. -
Wake sleep button makes search screen appear. Pls help!
pressing the sleep wake button makes my search screen appear. tried to press home/sleep wake but no luck. reconfigured as new ipad: no luck.
Any suggestions?
new ipad, 3rd gen.
thanks,
Fredsolved. do not touch screen when pressing button. say it: noob
-
SJIS- Japan Encoding Issues(*Unable to handle Double Byte Numeric and Spec)
Hi All,
Problem:
Unable to handle Double Byte Numeric and Special Characters(Hypen)
The input
区中央京勝乞田1944-2
Output
区中央京勝乞田1944?2
We have a write service created based on the JCA (Write File Adapter) with the native schema defined with SJIS Encoding as below.
*<?xml version="1.0" encoding="SJIS"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" xmlns:tns="http://nike.com/***/***********"
targetNamespace="http://nike.com/***/*************"
elementFormDefault="unqualified" attributeFormDefault="unqualified"
nxsd:version="NXSD" nxsd:stream="chars" nxsd:encoding="SJIS">*
Do anyone have similar issue? How can we handle the double byte characters while using SJIS encoding? At the least how can we handle double byte hyphen ??
Thanks in AdvanceHave modified my schema as shown below and it worked well for me and i am partially successful up to some extent. Yet, not sure the workaround will resolve the issue at the final loading...
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" xmlns:tns="http://nike.com/***/***********"
targetNamespace="http://nike.com/***/*************"
elementFormDefault="unqualified" attributeFormDefault="unqualified"
nxsd:version="NXSD" nxsd:stream="chars" nxsd:encoding="UTF-16">*
If anyone has the resolution or have these kind of issues let me know......... -
i forgot my password then its block when, i restore to technician of cellphone there's appear to to insert my apple.id but i forgot it too what can i do to restore my i phone pls help me
https://iforgot.apple.com/password/verify/appleid
-
Pls Help :JTable Double Value Editing Problem
hi friends
as i am new to swings and Jtable pls help me if u can.
in the code copied below when i start putting value into the Double column of JTable
a ( .0 ) is appended at the end which is undesirable it should be like that only when the value is
something like 22.99 and also i want to limit the double value's fractional part to be limited to 2 digits only.
if this can be done in my Table model itself so that it will work everywhere i use this model
Pls tell me what exactly do i need, a custom Cell Editor or Cell Renderer. and whether can i do it in the
Table Model Defination class or whether i can only do it on the Jtable only.
guys its so confusing.pls help
if anyone can send a sample code for achieving this it would be of great help
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.text.*;
public class TableProcessing extends JFrame implements TableModelListener
JTable table;
public TableProcessing()
String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
Object[][] data =
{"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
{"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
{"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
{"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
DefaultTableModel model = new DefaultTableModel(data, columnNames);
model.addTableModelListener( this );
table = new JTable( model )
// Returning the Class of each column will allow different
// renderers to be used based on Class
public Class getColumnClass(int column)
return getValueAt(0, column).getClass();
// The Cost is not editable
public boolean isCellEditable(int row, int column)
if (column == 3)
return false;
else
return true;
table.setPreferredScrollableViewportSize(table.getPreferredSize());
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
* The cost is recalculated whenever the quantity or price is changed
public void tableChanged(TableModelEvent e)
if (e.getType() == TableModelEvent.UPDATE)
int row = e.getFirstRow();
int column = e.getColumn();
if (column == 1 || column == 2)
int quantity = ((Integer)table.getValueAt(row, 1)).intValue();
double price = ((Double)table.getValueAt(row, 2)).doubleValue();
Double value = new Double(quantity * price);
table.setValueAt(value, row, 3);
public static void main(String[] args)
TableProcessing frame = new TableProcessing();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setLocationRelativeTo( null );
frame.setVisible(true);
}thank in advance
jagsNo.
But further to this try:
public class MyCustomRenderer extends javax.swing.table.DefaultTableCellRenderer
private java.text.DecimalFormat FORMAT_DOUBLE;
public MyCustomRenderer()
FORMAT_DOUBLE = new java.text.DecimalFormat("#, ##0.00");
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
//NB! you could also set foreground/background here to indicate positive/negative values...
if(value.getClass().equals(Double.class))//is this a double?
double d = ((Double)value).doubleValue();
d = (Double.isNaN(d)||Double.isInfinity(d))?0:d;
this.setText(FORMAT_DOUBLE.format(d));
else//not a double so let's toString() it...
this.setText(""+value);
}then, using code pasted above, specify a new instance of this class as the default renderer in your
table.....
:) -
In my iphone6, voice over got switched on and screen got locked. Phone is not responding for slide but only responding for double tap. Phone is not accepting my passcode as I double tap in passcode screen. Single tap just gives a voice over. pls help me to unlock the screen and switch off voice over
Thanks a lot Sted !! It worked
-
I'm trying to add thousands of songs to my iTunes library at once but the option to add folder doesn't appear in my file menu. Adding these songs one at a time is not an option. Someone pls help!!!
Turn on the menus and it will appear.
Cntrl + B to enable menus. -
I need to query single bytes - Pls help
Hi, I have got a method which performs different operations. I would like to update the state of a variable with the different steps occurred in the code execution and, at a later time, to query this variable to check what to do.
Example:
variable = -1;//This is an instance variable
if (cacheCleared) {
variable &= PageCanvas.CACHE_CLEARED;
if (imagesCleared) {
variable &= PageCanvas.IMAGES_CLEARED;
if (xmlCleared) {
variable &= PageCanvas.XML_CLEARED;
//And so on...Then, after the method returns, I'd like to be able to to query 'variable' to check which steps have been performed with something like:
if ((variable == PageCanvas.CACHE_CLEARED & PageCanvas.IMAGES_CLEARED)) {
//do something;
} else if (variable == PageCanvas.CACHE_CLEARED & PageCanvas.XML_CLEARED) {
//do something else
}I saw somewhere something like offset concepts, but I don't know how to implement it. Could you keep in mind that we run in a memory constrained environment, therefore I'd like to use, let's say, an int and having the constants as bytes?
Thanks for any help.Hi, I have tried the following code:
byte b1 = 1;
byte b2 = 2;
byte b3 = 4;
byte b4 = 8;
byte results = 0;
results |= b1;
results |= b3;
results |= b4;
System.out.println(results == (results | b1));
System.out.println(results == (results | b2));
System.out.println(results == (results | b3));
System.out.println(results == (results | b4));And the result is:
true
false
true
true
However, I noticed that it's important to assign the bytes the values of the bits right to left:
0000 0001
0000 0010
0000 0100
0000 1000
The first byte should have value 1
The second should have value 2
The third should have value 4
The fourth should have value 8
So that the | operator works. -
I was trying to update the software of the iphone to the last version, and something went wrong, and now my iphone wont start.
now it is asking me to conect it to Itunes, and itunes is asking me to restore it, and nothing happends
does anyone know how to fix the problem, and how to bring to life my phone?
pls help!!!!!Did you try to connect in recovery mode, shownn in this article? iOS: Unable to restore
-
Hi could you pls help me? I cant install apps on my ipad mini...i try many times to change my password but still the same problem..
Try signing out of your Apple ID in the Settings app then sign back in.
-
Our RS232-enabled instrument sends ASCII strings to COM 1 and I read strings in. For example I get the string "TPM", or at least it looks like "TPM" if I display it. However, if I send that to the selector input of a Case structure, and create a case for "TPM", whether the two appear to match varies. Sometimes it matches, and measuring its length returns 3. Sometimes it measures 7 or 11 or 12 characters long, and it doesn't match. I can reproduce a match or a mismatch by my choice of the command that went to the instrument prior to the command that causes the TPM response, but have made no sense of this clue. I have run it through Trim Whitespace, with Both Ends (the default) explicitly selected. I have also turned the string into a byte array, autoindexed a For loop on that, and only passed the bytes if they don't equal 32, or if they don't equal 0, thinking spaces or nulls might be in there, but no better.
The Trim Whitespace function's Help remarks that it does not remove "double byte characters". But I can't find anything else about "double byte characters". Could this be the problem? Are there functions that can tell whether there are "double byte characters", or convert into or out of them? By "double byte characters", do they just mean Unicode?
Solved!
Go to Solution.Cebailey,
The double byte characters are generally used for characters specific to languages other than English. If you display your message in " '\' Codes Display" in a string indicator do you see any other characters? You could also use Hex Display to see count the number of bytes in the message. You are probably getting messages with non-printable characters that might need to be trimmed before using your application. If you want more information the '\' Codes Display, there's a detailed description found in the LabVIEW Help. You can also find the same information on our website in the LabVIEW Help. Backslash ('\') Codes Display
Caleb WNational Instruments -
JScrollPane wont scroll .. pls help
hi to all,
I have a scrollpane that i am displaying a graph in, and they will be large graphs, 10000 nodes with about cardinality 10 for each node.
I can generate the graph output no problems but my scrollbars dont allow me to scroll the pane, and i cant figure out why.
I'm assuming that i should be doing something with the viewport once i add the graph, but i dont know what.
can anyone pls help me,
also can anyone suggest how i go about zooming in and out. im thinking its just resizng the viewport, but i need to work out why i cant scroll before i tackle that.
package graphappz.ui;
import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
import graphappz.graph.Graph;
import java.util.Iterator;
import graphappz.graph.Vertex;
import graphappz.graph.Edge;
import java.awt.event.MouseListener;
import java.awt.event.MouseEvent;
public class GraphWindow
extends JPanel {
JEditorPane graphWindow;
JScrollPane graphView;
Dimension d = new Dimension();
Point2D p = null;
GraphViewer viewer;
public GraphWindow() {
graphWindow = new JEditorPane();
graphWindow.setText("");
viewer = new GraphViewer();
graphView = new JScrollPane(viewer);
graphView.setHorizontalScrollBarPolicy(JScrollPane.
HORIZONTAL_SCROLLBAR_ALWAYS);
graphView.setVerticalScrollBarPolicy(JScrollPane.
VERTICAL_SCROLLBAR_ALWAYS);
graphView.getViewport().setBackground(Color.white);
graphView.setBorder(BorderFactory.createEtchedBorder());
graphView.setToolTipText("Graph Output Display Window");
repaint();
public JScrollPane getGraphView() {
return this.graphView;
public Dimension getSize() {
graphView.setPreferredSize(new Dimension(520, 440));
return graphView.getPreferredSize();
class GraphViewer
extends JPanel {
public void paintComponent(Graphics g) {
super.paintComponent(g);
int nodeWidth = 20;
int nodeHeight = 20;
if (graphappz.Main.graph != null) {
Graph graph = graphappz.Main.graph;
Iterator iter = graph.edgeIter();
while (iter.hasNext()) {
Edge e = (Edge) iter.next();
Vertex v_0 = e.getv0();
Vertex v_1 = e.getv1();
if ( ( (v_0.getLayoutPosition() != null) ||
(v_1.getLayoutPosition() != null))) {
Point2D.Double pos_0 = v_0.getLayoutPosition();
Point2D.Double pos_1 = v_1.getLayoutPosition();
// draw the edge
g.setColor(Color.red);
g.drawLine( (int) pos_0.x + (nodeWidth / 2),
(int) pos_0.y + (nodeHeight / 2),
(int) pos_1.x + (nodeWidth / 2),
(int) pos_1.y + (nodeHeight / 2));
// draw the first node
g.setColor(Color.blue);
g.drawOval( (int) pos_0.x, (int) pos_0.y, nodeWidth, nodeHeight);
g.fillOval( (int) pos_0.x, (int) pos_0.y, nodeWidth, nodeHeight);
// draw the second node
g.setColor(Color.blue);
g.drawOval( (int) pos_1.x, (int) pos_1.y, nodeWidth, nodeHeight);
g.fillOval( (int) pos_1.x, (int) pos_1.y, nodeWidth, nodeHeight);
// draw the edge
g.setColor(Color.black);
g.drawString(v_0.getReference() + "", (int) pos_0.x + 5,
(int) pos_0.y + 14);
else {
graphappz.util.Debug.debugText.append("\n graph is null, can't draw it");
//TODO: show new Alert_Dialog
public GraphViewer() {
this.setBackground(Color.white);
this.addMouseListener(new MouseListener() {
public void mouseClicked(MouseEvent e) {}
public void mousePressed(MouseEvent e) {}
public void mouseReleased(MouseEvent e) {}
public void mouseEntered(MouseEvent e) {}
public void mouseExited(MouseEvent e) {}
}Scrollbars will appear when the preferred size of the panel is greater than the preferred size of the scrollpane.
When you add components (JButton, JTextField...) to a panel then the preferred size can be calculated by the layout manager.
When you draw on a panel the layout manager has no idea what the size of you panel is so you need to set the preferrred size yourself:
panel.setPreferredSize(...);
Maybe you are looking for
-
Flickering problem on screen - 3000 series N200 laptop
Hello! I have a 3000 series N200 laptop (0769 type) for 3 years. Approximately 3 months ago, there was a screen problem that the screen had white vertical gridlines. Service replaced the chipset of the graphical card. Yesterday, a flickering problem
-
Airdrop from iPhone 6 to MB pro late 2011 not working
Folks, this is really putting sand in my speedo. I have my OS updated on my iPhone and Macbook Pro 17" late 2011 and am simply not able to see my computer from my iPhone. I can see see my Mac pro tower form my MB pro, I am on the same wifi network, i
-
sir, when i have tried to view the posting of withholding tax entry for advance/down payment made to vender it shows an error of " WHTax amount exceeds the bank line items amounts" and it is not posting the tax amount to concerned account, pls advise
-
JMS server targeted to several clusters
Hello, I am facing a problem with my JMS configuration in weblogic (version 10.3.4.0). I have two clusters. Following the [JMS best practice|http://forums.oracle.com/forums/message.jspa?messageID=9455261#9455261] I have created a JMS server in each M
-
No wifi discovery w/ my 3G
iPhone 3G w/ 2.0.2 software, itunes 8, OS 10.5.4, airport extreme wifi w/ SSID name viewable and WPA2 security I've upgraded from old iPhone to iPhone 3G and after iTunes sync the new iPhone won't show available wifi networks like my home network. I