Special characters in labels
I would like to put special characters such as the French characters in the text of a jLabel.
For example if I write this: jLabel1.setText("Yahoo");
in French, I need to concatenate a special character:
jLabel1.setText("Voil" + %%special_character);
IWhat exactly is the way to do this please? Thanks
I should click on "report abuse", but then I'd have to
send them to:
http://www.insultmonger.com/swearing/hungarian.htm
Of course, you know I was just joking.
My source of such material is The Alternative Dictionary. http://www.notam02.no/~hcholm/altlang/
Also, to display special HTML character such as that found in Århus, use the character entities for the latin-1 chars., see http://hake.com/gordon/w3-spec.html
Similar Messages
-
i can't open "special characters" in any Edit pull down menu. i have a constantly flashing empty window labelled 'characters' that i haven't been able to stop.
it appears every time i click on anything. any suggestions? tru thanxI, too, have found Bridge very unstable. I find this to be extremely disappointing, seeing as it's literally the most expensive piece of software I've ever purchased for personal use. I've seen these two symptoms:
1. When running in full screen mode, Bridge crashes periodically. This happened on Vista, so I blamed Vista (of course), but even after regressing to XP SP2, I see the same symptoms.
2. Although I didn't see this on Vista, running on XP I see the problem described earlier in this thread, where clicking on a thumbnail displays the wrong image preview. When this happens the image displayed is one from a different folder! I solve the problem by clearing the cache, and it's OK for a while, but the problem keeps returning.
3. Even when exiting cleanly from Bridge (using File->Exit), Bridge often forgets where I was working in my previous session. I need to re-navigate from the very top level directory down through the hierarchy to my photo directory.
Again, it's very disappointing to invest so much in a single software package only to see such basic operations malfunction. -
How to preserve special characters in dynamic textfield for text comparison?
The problem is as follows:
Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
This works fine as long as I don`t use any special characters, like for example "\n".
var labels:Array = ["\nLABEL1","LABEL\n\n2"];
switch (e.currentTarget.txt.text)
case labels[0]:
doSomething();
break;
case labels[1]:
doSomethingElse();
break;
shows the right thing in the button label (breaks the text were I want it)
but stops to work
(with htmlText & <br> its the same)
my workaround for the moment is to use filler spaces,
var labels:Array = [" LABEL1","LABEL 2"];
but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
Any ideas how to bypass that?Bad habits die hard ;-)
Weird enough spelling the problem out and getting this response from you cleared my head and I finally got an easy solution.
I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
Voila: Now I can be lazy without too much of a bad conscience. -
Special characters in XML document
I have a Flash file saved as version 8 with the following script calling an xml file:
//init TextArea component
myText.html = true;
myText.wordWrap = false;
myText.multiline = false;
myText.label.condenseWhite=true;
//load in XML
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function(success){
if(success){
myText.text = xml;
xml.load("titletext.xml");
My xml file contains the following:
<?xml version="1.0" encoding="iso-8859-1"?>
<![CDATA[Smith's dog & cat are "crazy"]]>
When posted online my flash file displays the encoding tag in the xml file.
AND the apostrophe, ampersand and quote marks display as html code instead of the actual character.
I can take the encoding tag out of the xml file but my characters still don't display correctly.
My dynamic text field in flash (myText) does have special characters embedded, plus I have them entered manually in the field for 'include these characters'.
Does anyone have suggestions for me?
You can view this test file at http://wilddezign.com/preshomes_name2.html
TIAPerhaps you need a slightly different approach to loading the XML. Instead of loading the entire XML file, what if you loaded only the child you were looking for? This is what I usually do:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("some.xml");
xml.onLoad = parse;
function parse(success){
if (success){
root = xml.firstChild;
_global.numberItems = root.attributes.items;
itemNode = root.firstChild;
var i:Number = 0;
while(itemNode != null){
myText.text = itemNode.attributes.description;
itemNode = itemNode.nextSibling;
i++;
else {
trace("XML Bad!!");
And your XML would be structured like this:
<?xml version="1.0" encoding="utf-8"?>
<sample>
<item description="This is the text that I want to appear on this MC!" />
</sample> -
RegExp for excluding special characters in a string.
Hi All,
Im using Flex RegExpValidator. Can anyone suggest me the correct expression to validate this condition?....
I have tried this expression :----- /^[^///\/</>/?/*&]+$/...But in this it is also negating the alphabets.Also I have tried with opposite condition that in the String we should have alphabets and the expression is:-- ([a-z]|[A-Z]|[0-9]|[ ]|[-]|[_])*..... Please can anyone help me on this.
Thanks in advanced to all.
Munirasorry but you are posting things back that do not make any sense
what do you mean with the below comment?
munira06 wrote:
Yes you are correct ,but I have tried this with single special character
say
Re: RegExp for excluding special characters in a string.
here is a sample app taken from the live docs
using ^[a-zA-Z0-9 \-_]*$ as the regex accepts all characters from a-z, A-Z, 0-9 - [space] and_
run the example tell me what regex you are using and what test strings fail when they should pass or pass when they should fail
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the RegExpValidator. -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import mx.events.ValidationResultEvent;
import mx.validators.*;
// Write the results to the
private function handleResult(eventObj:ValidationResultEvent):void {
if (eventObj.type == ValidationResultEvent.VALID) {
// For valid events, the results Array contains
// RegExpValidationResult objects.
var xResult:RegExpValidationResult;
reResults.text = "";
for (var i:uint = 0; i < eventObj.results.length; i++) {
xResult = eventObj.results[i];
reResults.text=reResults.text + xResult.matchedIndex + " " + xResult.matchedString + "\n";
} else {
reResults.text = "";
]]>
</fx:Script>
<fx:Declarations>
<mx:RegExpValidator id="regExpV"
source="{regex_text}" property="text"
flags="g" expression="{regex.text}"
valid="handleResult(event)"
invalid="handleResult(event)"
trigger="{myButton}"
triggerEvent="click"/>
</fx:Declarations>
<s:Panel title="RegExpValidator Example"
width="75%" height="75%"
horizontalCenter="0" verticalCenter="0">
<s:VGroup left="10" right="10" top="10" bottom="10">
<s:Label width="100%" text="Instructions:"/>
<s:Label width="100%" text="1. Enter text to search. By default, enter a string containing the letters ABC in sequence followed by any digit."/>
<s:Label width="100%" text="2. Enter the regular expression. By default, enter ABC\d."/>
<s:Label width="100%" text="3. Click the Button control to trigger the validation."/>
<s:Label width="100%" text="4. The results show the index in the text where the matching pattern begins, and the matching pattern. "/>
<mx:Form>
<mx:FormItem label="Enter text:">
<s:TextInput id="regex_text" text="xxxxABC4xxx" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Enter regular expression:">
<s:TextInput id="regex" text="ABC\d" width="100%"/>
</mx:FormItem>
<mx:FormItem label="Results:">
<s:TextInput id="reResults" width="100%"/>
</mx:FormItem>
<mx:FormItem >
<s:Button id="myButton" label="Validate"/>
</mx:FormItem>
</mx:Form>
</s:VGroup>
</s:Panel>
</s:Application> -
Try to show special characters in a JLabel
Hi everybody,
I have a big problem with special characters and to display them.
At the moment I'm writing an Applet where you can type in
in a JTextField stuff like \u0398 \u03B6 \u03A6 \u03C9 \u03BE.
Then you press a JButton and the method TextField.getText();
gives the input to a String. After that with the method
Label.setText(String);
i want to display the special characters, but they weren't shown.
Instead of its the typed in characters (\u0398 \u03B6 \u03A6 \u03C9 \u03BE) appear.
If I hardcode it, it works and every special character i want is displayed.
Label.setText("\u0398 \u03B6 \u03A6 \u03C9 \u03BE");
So what is wrong?
If some things are not so clear don't hesitate to ask me
Thanks in advance
swachtarhi,
I think I have an idea of what is going wrong with your code:
The text in the JTextField is stored as a String in the Document. However, each character typed into the field will be stored separately, that means that the six characters typed have to be merged into one. So try creating a new String object from the textfield data and pass this one to the label:
JLabel label;
JTextField textField;
label.setText(new String(textField.getText()));
I don't know whether this works, but this is the only idea comming to my mind right now.
best regards, Michael -
Searching too long for this, so asking might be easier:
How do I code special characters (e.g. german umlaut) in a label of an ephone-dn for i.e. a 7960? Should be possible but I don't find a hint.
Any ideas?
MatCheck this
http://download-east.oracle.com/docs/cd/B10501_01/text.920/a96518/cqspcl.htm#1360 -
Special characters (norwegian wovels) not showing correctly in Page Layouts
We have a publishing site which surfaces content from several catalogs in an authoring site in a cross site collection publishing environment.
We have a problem with labels for Catalog-Item Reuse Snippets containing norwegian vowels/special characters not showing properly. An example of a snippet is shown below. This contains the character ø (oslash).
<div class="rightColPaddingUnder"><h2>Leverandørkontakt</h2>
<!--CS: [NavnhovedkontaktleOWSTEXT] Start Catalog-Item Reuse Snippet-->
<!--SPM:<cc1:CatalogItemReuseWebPart runat="server" UseServerSideRenderFormat="True" ResultType="" NumberOfItems="1" UseSharedDataProvider="True" OverwriteResultPath="False" ResultsPerPage="1" SelectedPropertiesJson="["NavnhovedkontaktleOWSTEXT"]" Title="$Resources:Microsoft.Office.Server.Search,CBSItem_Title;" Description="$Resources:Microsoft.Office.Server.Search,CBSItem_Description;" MissingAssembly="Cannot import this Web Part." ID="g_1d79f6d5_037f_43b3_ac4b_4e7bc10ff1c3" __WebPartId="{1d79f6d5-037f-43b3-ac4b-4e7bc10ff1c3}">-->
<!--SPM:<RenderFormat>-->
<!--DC:Viser verdi fra søk uten ekstra formatering.-->
<!--SPM:</RenderFormat>-->
<!--SPM:</cc1:CatalogItemReuseWebPart>-->
<!--CE:End Catalog-Item Reuse Snippet-->
</div>
The frontend messes the character up and displays this as strange A
We have tried several things in order to fix this but are running out of leads:
tried to change encoding in the page layout html file from utf-8 to iso-8859-1
tried to replace ø with the hex value (ø) and the old school & + oslash + ; way of encoding characters
Regional settings on the server is verified to be norwegian
The strange part is that actual content in the content type columns that we display around the page actually shows the norwegian characters correctlyExcellent, thanks!. I checked the top level globalization setting i IIS and this was set to Windows-1252.
However, our work around solution was to add the
<meta charset="utf-8">
declaration inside the first MS-statement inside the body tag of the page layout HTML file like this:
<?xml version="1.0" encoding="utf-8"?><!--SPG:
-->
<!DOCTYPE html[]>
<html class="no-js" lang="en" xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Some title
</title>
</head>
<body>
<!--MS:<asp:ContentPlaceHolder ID="PlaceHolderTopNavBar" runat="server">-->
<meta charset="utf-8">
<!--MS:<SharePoint:AspMenu ID="TopNavigationMenu" runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>" UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="1" AdjustForShowStartingNode="false" MaximumDynamicDisplayLevels="3" SkipLinkText="">-->
Strange, but it worked.
Actually we tried to set the globalization settings in the web.config files of the different IIS sites running in the webapp yesterday like this:
<add name="SPWindowsClaimsAuthentication" type="Microsoft.SharePoint.IdentityModel.SPWindowsClaimsAuthenticationHttpModule, Microsoft.SharePoint.IdentityModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
</httpModules>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="nb-NO" fileEncoding="utf-8"/>
<!--<globalization fileEncoding="utf-8" />-->
<compilation batch="false" debug="false">
As far as I can understand this should have the same effect as setting this in IIS.
It seems that the IIS setting actually overrides whatever you put in web.config for globalization options.
We have updated the IIS setting now to UTF-8 and done a IIS Reset. At the moment we get corrupted characters still, but now the existing aspx-files probably is corrupted and needs to be replaced with fresh ones. I will do a catalog dis-/reconnect.
I'll update with whatever we end up with as the final solution. Anyway, very grateful for the invaluable help from a fellow Scandinavian :-) -
How to find the 'special characters' window
Hi,
Frequently I want to access the 'special characters' window, but when I click on the 'special characters' menu item the window does not appear. Sometimes I later find it on another screen (I use nine screens in Spaces), and sometimes can I see it on another screen using Expose, but when I go there it has disappeared. It seems a very fugitive tool, and in its way displays some cute, personality........ But I would love to know how to find it or to force it to appear on the same screen as the application from which I tried to open it!
all the best,
Jeremy HarbinsonHi,
Thanks for the reply.
I tried what you suggest - in the International section of the System Preferences there is a tab labelled 'input menu' and there is a check box (which is checked) titled 'Show input menu in Menu bar'. Unchecking that removes a national flag from the the menu bar, checking it restores that flag. So far, so good. If a click on the flag, a drop down menu appears with 'Hide character palette' as an item - clicking this changes it state to 'Show character palette' but clicking this (several times) changes nothing else that I can see,
all the best,
Jeremy -
Waveburner special characters in CDText Problem
Hi all,
first post
Been trying to burn a CD (internal drive) with Spanish titles in CDText and the special characters get corrupted (ñ ó í ).
This doesn't happen in Toast8 and seems specific to Waveburner (using 1.2)
I normally use the English keyboard layout and tried using the Spanish and Spanish ISO layouts to see if there was a difference, but no.
I would upload a picture to show but I don't know how.
so I'll describe:
Song title burned with Toast8: 1. Muñeca
Song title burned with WBP: 1. Mu∆eca
This was checked re-inserting the burned disc and command+I on toast
Also checked on a PC using "Audio Label" program which reads CDText.
This might not seem like a big problem but I simply cannot send a Master disc with Spanish titles to a CD plant which is a bummer.
I'm updating Logic Pro 7.2 to 8 soon which has Waveburner 1.5
I wonder if this is fixed?
CheersCD Text is apparently supposed to be in the ISO 8859 character set. Consequently european characters are supposed to be allowed in CD-Text. Every single title on my two last projects contained åäö and the meaning of a word will become drastically different - "låt" and "lat" are completely unrelated words ("song" and "lazy"). So you can't just drop them. If you just "drop" dots and rings that would be like dropping the dot over the "i". Does that make the "i" an "l" (L)?
Barring a CD-player that shows CD-text, what program can inspect an audio CD and tell what's on it?
L -
Special characters in UTF-8 UNIX file
We have a program which downloads data from certain info-types in to the UNIX file, Fields are written to the specific position in the UNIX file. Some of the fields contains "Special Characters" in them.
When we download the file in UTF-8 mode (encoding default) then the file display special characters correctly but the all the characters in that record gets shifted to left.
When we download the file in ANSI mode then the file display doesn't special characters correctly but the all the characters in that record do not get shifted from their place.
How can i find the special character in the field and accordingly i will shift the field right so that in the final UNIX file field won't shift their positions.Hi Ramnivas.
Have you tried to read the characters with class: CL_ABAP_CHAR_UTILITIES (transaction SE24, label Attributes)
For example you can see # in ABAP but in the file will be a new line or a carriage return, you can detect that an adapt it with:
CL_ABAP_CHAR_UTILITIES=>NEWLINE or CL_ABAP_CHAR_UTILITIES=>CR_LF
Other hand, if you are using OPEN DATASET to download the file, look at the options of encoding
See F1 of OPEN DATASET and then encoding..
OPEN DATASET - encoding
Syntax
... ENCODING { DEFAULT
| {UTF-8 [SKIPPING|WITH BYTE-ORDER MARK]}
| NON-UNICODE } ... .
Hope it helps
Regards.
Alfonso. -
Is it possible to search for strings containing spaces and special characters?
In our RoboHelp project, there are figures with text labels such as Figure 1, Figure 3-2, etc.
When I search for "Figure 3" I get all pages containing "Figure" and "3", even if I surround it in quotes. Similarly, searching for "3-2" treats the '-' character as a space and searches for all pages containing '3' or '2'.
Is there a way to search for strings containing spaces and special characters?In that case I think the answer is no if you are using the standard search engine. However I believe that Zoom Search does allow this type of searching. Check out this link for further information.
http://www.grainge.org/pages/authoring/zoomsearch/zoomsearch.htm
The RoboColum(n)
@robocolumn
Colum McAndrew -
Hi,
i'm displaying usernames in our application, but i'm not sure
how to display
special characters correctly.
When using the labels htmltext property, it only recognized
html style tags, but
no html encoded special character like ü for the
german character ü.
The encode string is simply displayed literally: ü
Anyone knows how to display those special characters
correctly ?Try one of the NSString "stringByReplacingPercentEscapesUsingEncoding" methods.
-
Forms and Czech special characters
Hello everybody,
I created a form to update calendar events. I used Czech language to made labels of inputs in the form. Czech special characters aren't display correctly. Others applications, pages and CAs are OK. Just I have problems with forms. The characters are replaced with senseless characters and if I save the form again, the sensless characters are added. So I have longer and longer strings there.
I found that the labels are saved in the table "WWA_FORM_ITEMS$". So I changed them directly in this table. But you know, it's annoying.
Does anybody knows if there is more comfortable solution?
I'm using Portal 3.0.8 and database 8.1.7.
Thanks for any answer. You can use also this address: [email protected]
Petra :)again.
Hi Petra,
i've had the same problem with german characters. As far as I know it is a bug
(either in Portal or in Interner Explorer).
You can use Netscape to design your forms or (that's how I do it) use the
html equivalent for your letter. For example instead of "ä" (or d) use "& a u m l ;"
(without the blanks - I hope that this will be displayed correctly).
Regards Oliver -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M
Maybe you are looking for
-
Recently I am having trouble viewing some videos on Yahoo using Safari 5.1.1 on PowerbookPro 10.6.8. I am not finding a solution on internet.
-
Video resolution and dual monitor assistance
Trying to set up a show running on a windows XP Pro PC with dual monitor (ATI HD3870 card) so that videos run using Windows Media Player (or maybe something else if needed?) on the second monitor (actually a large projector). The videos are synchroni
-
I lost my iphone and I am not sure if icloud is on?
Lost my iphone and not sure if icould is on?
-
How to refer to a dtd in different dir
I have a simple question. my xml file wants to point to a dtd which reside in different directory. so, what should i do in the !DOCTYPE line? if it is in the same dir, I can do the following: <!DOCTYPE rootElement SYSTEM "rootElement.dtd" > now, how
-
My program always displays the same image, even when I change th image file
I'm making a program that chooses an image file from a dialog, resize it and copy it into a folder. When the image is needed to be displayed, the image file is read and a JLabel displays it on screen. When I upload the first image, everything works f