HTML Entity Question
▼ nicely displays a downward facing solid triangle in Firefox
IE6 will not display it.
Will IE7 or later versions show it?
Many thanks for your attention, it is appreciated.
This is not my issue. Your forums site doesn't work very well.
My Issue:
I just upgraded my PC from XP Professional 32-bit with CS4 to Win 7 64-bit with CS5. I created and used 4 master templates (not nested) in CS4 which ran perfectly. Since I upgraded to CS5, I am unable to update the child pages at all. I mean it is DOA!! I downloaded an update fixer from Adobe but that seemed to be for the extension manager, not updating pages from a template. I tried all the usual template commands such as Update Current Page, etc....When I tried the command Open Attached template, the message I got was that I was denied access, but I manually opened it just fine. (@#$%@#$%&%^&$&*)
What can I do to get my DW to update?
Similar Messages
-
Convert invalid xml characters to HTML-Entity
Hi,
How can i convert invalid XML characters like �,�,�, . . . to the HTML- Entity ä ü ö ?
Is there any Method or class who can handle an input string and transform the invalid characters?
Or is there another way to mask this characters so that an XML parser do not throw an error when parsing the document.
Best regards,
MichaelOk sorry, I'll give you more details what i want to do and where i have the problems.
I have the following xml string:
<font family="Times New Roman" size="14" color="#333333">This is a sample Text</font>
The xml-string can contain any characters because the content is from a text pane where the user can type in any characters.
I use the DOM parser to parse this input string to get the attributes and the text content.
And thats my problem, how can i make sure that this string wont throw any exceptions when i parse it with DOM?
Parsing the string with the follwing code:
public XMLElement parse(String sourceString)
//create a new xml element
XMLElement xmlElement = new XMLElement();
//create a new document
DocumentBuilder builder = build();
//now parse the string into the document
InputStream is = new ByteArrayInputStream(sourceString.getBytes());
Document document = null;
try
document = builder.parse(is);
catch (SAXException e)
System.out.println("SAXError while parsing the document");
e.getMessage();
//no valid document
return null;
catch (IOException e)
System.out.println("IO Error while parsing the document");
e.getMessage();
//no valid document
return null;
//get the element
org.w3c.dom.Element element = document.getDocumentElement();
if (element != null)
xmlElement.setNodeName(element.getNodeName());
xmlElement.setNodeValue(element.getTextContent());
//attributes defined?
int length = element.getAttributes().getLength();
//get the attributes, if defined
for (int i = 0; i < length; i++)
xmlElement.addAttribute(
element.getAttributes().item(i).getNodeName(),
element.getAttributes().item(i).getTextContent());
return xmlElement;
} XMLElement is my own class.
The builder:
private DocumentBuilder build()
DocumentBuilder docBuilder = null;
try
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
docBuilder = factory.newDocumentBuilder();
catch(ParserConfigurationException pce)
System.out.println("Error while creating an DocumentBuilder");
pce.getMessage();
//return the document builder
return docBuilder;
}Message was edited by:
heissm - spelling mistakes :( -
I haven't been able to find a way to insert HTML entity codes (specifically, to use em dashes, but other needs arise) through the interface. HTML snippets are intended for something entirely different. Apart from opening published output in an editor to insert the entity codes, is there a simple way that I've missed finding?
If you want to change the characterset then presumably you can only do that post publishing.
http://www.markboulton.co.uk/journal/comments/fivesimple_steps_to_typesetting_on_the_webdashes/
This article may be of use, particularly
+"In Unicode, the em dash is U+2014 (decimal 8212). In HTML, the numeric forms are — and —. The HTML entity is —."+ -
HTML Entity Escape Character Conversion
Requirement is to Convert UTF-8 encoded Speciual language characters to HTML Entity Escape Character's. For example In the source I have a Description field with value "Caractéristiques" which is 'Characteristics' in French, This needs to be converted to "Caractéristiques" when sent to the Reciever.i.e the Special Language Symbols like é = é (in HTML Entity format.)
Below is the Link for a List of HTML Entity Char's
http://www.theukwebdesigncompany.com/articles/article.php?article=11
could anybody please suggest how this can be achieved in mapping...any UDF or Encoding techniques...?
many Thanks.Hi Veera
this is ajay
code for ur problem
String ToHTMLEntity(String s) {
StringBuffer sb = new StringBuffer(s.length());
boolean lastWasBlankChar = false;
int len = s.length();
char c;
for (int i = 0; i < len; i++) {
c = s.charAt(i);
if (c == ' ') {
if (lastWasBlankChar) {
lastWasBlankChar = false;
sb.append(" ");
} else {
lastWasBlankChar = true;
sb.append(' ');
} else {
lastWasBlankChar = false;
// HTML Special Chars
if (c == '"')
sb.append(""");
else if (c == '&')
sb.append("&");
else if (c == '<')
sb.append("<");
else if (c == '>')
sb.append(">");
else if (c == '
// Handle Newline
sb.append("<br/>");
else {
int ci = 0xffff & c;
if (ci < 160)
sb.append(c);
else {
sb.append("&#");
sb.append(new Integer(ci).toString());
sb.append(';');
return sb.toString();
rewrd points if it help u -
HTML entity missing in Design View
Hi Folks,
When I use the HTML entity → (right arrow), it renders properly in browsers as an arrow, but it shows as an empty box in Dreamweaver Design View. This is common with some other special characters also.
Any idea as to why this happens?
Thanks.
Paul
Dreamweaver 8
Windows XP Pro SP3I just tried it in DW8 and it works for me.
Pasted in code view. →
Are you using a valid document type?
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Dreamweaver cc html entity conversion problem in mac -NO utf-8 related answer please
I probably am fighting against a bug existing in DW for a while, and i'm really on the edge of bursting out!
Here are the specifications:
Dreamweaver CC from creative cloud (also tested w/ CS5.5 too) installed on mac, OS and DW user interfaces are english, and on mac turkish keyboard layout is also installed.
I have been using DW for maybe 15 years, since it was macromedia.. But was always on windows. This is the first time I use it on mac. Here is my problem step by step:
1- Dreamweaver > Pereferences > New Document > Default Encoding: Western (ISO Latin 1) (NOT UTF-8 PLEASE, IT KEEPS THE CHARS UNCHANGED, ISO LATIN1 IS IMPORTANT)
2- Go to Design View,
3- There are 6 special characters in Turkish (times 2 for the caps versions of course), type:
ĞÜŞİÖÇğüşıöç
4- Go back to code view, what i should have seen was:
ĞÜŞİÖÇğüşıöç
But I see:
ĞÜŞİÖÇğüşıöç
There are 3 chars (and capital versions) NOT converted to html entity at all. Which were: ĞŞİğşı
But I should have seen them as: ĞŞİğşı
Any help would be appreciated, I do not want to leave my old friend DW just because of a weird conversion problem...Ok, when you look at the code view, what do you see exactly?
do you see unconverted
ĞÜŞİÖÇğüşıöç
or converted
ĞÜŞİÖÇğüşıöç
Here is one of my reasons:
I sometimes create newsletters in turkish for my customers, and the html files i prepare are sent to customers attached as inline through various versions of outlook or thunderbird, or through i completely different email sender company (none is sent by me, i only create the html file). And most of the time the headers and some coding are cut off from the code when used to send as newsletter, and i have no control at all on it. so i have to create absolute correct viewed/rendered html files since i have no control at all on which sending method will be used or which os or browser or mail system will be used to open it... -
Silly HTML wordwrapping question...
Sorry if the question seems dumb, but is there a way to
insert a space in a
block of text that won't break up a word during wordwrapping?
Example : « This is a test »
I like the spaces between the quotation marks and the quoted
text. But I
don't want either of them left stranded. I want this block of
text to behave
like those 2 spaces don't exist. Wrap BEFORE the 1st quote,
or after the 2nd
one (or at any point in between as long as it's between two
words).
How do I tell those two spaces to be ignored by wordwrapping
rules?
Thanks.Or HTML -
" whatever "
But Cosmo's solution is a more efficient way for sure.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Cosmo Kramer" <[email protected]> wrote in message
news:gorfvm$2bi$[email protected]..
> In CSS:
> white-space: nowrap
> Should do the trick.
>
>
> "Mike" <[email protected]> wrote in message
> news:gorfpc$228$[email protected]..
>> Sorry if the question seems dumb, but is there a way
to insert a space in
>> a block of text that won't break up a word during
wordwrapping?
>>
>> Example : « This is a test »
>>
>> I like the spaces between the quotation marks and
the quoted text. But I
>> don't want either of them left stranded. I want this
block of text to
>> behave like those 2 spaces don't exist. Wrap BEFORE
the 1st quote, or
>> after the 2nd one (or at any point in between as
long as it's between two
>> words).
>>
>> How do I tell those two spaces to be ignored by
wordwrapping rules?
>>
>> Thanks.
>>
>
> -
Hy,
I have a simple question regarding entities. Are entity relationships retrieved from the database?
For example, if I have two entities:
EntityA.java
@Entity
public class EntityA {
private EntityB b;
@OneToOne(mappedBy="a")
public EntityB getB() {
return b;
public void setB(EntityB b) {
this.b = b;
EntityB.java
@Entity
public class EntityB {
private EntityA a;
@OneToOne
public EntityA getA() {
return a;
public void setA(EntityA a) {
this.a = a;
}If I retrieve an instance of EntityA, say with EntityManager#find(), can I access the EntityB instance through EntityA#getB()? And if I can, how does it work? Does the persistence provider instanciate an EntityB the first time I call EntityA#getB() and return the same reference on subsequent calls to getB()?
Thanks,
CsabiHi Frank,
I did as you suggested and moved all attributes in the properties file relating to 'the applicant' or 'the entry clearance officer' from Global into the relevant entity. One annoying thing when you are cutting and pasting a large number of attributes; once pasted they all take on the same ID.
Also, when creating entities in the properties file, why doesn't it automatically recognise the attributes that relate to it?
I then stripped and removed all attributes from all the documents in the project and recompiled them and this ended the problem
However, I'm still getting error message for the screens which collect attributes that relate to these singleton entities or the global entity (e.g. 'Screen belongs to entity 'the applicant' which is not collected from entity 'Global').
I thought that there was no restriction on collecting singletons on the same screen as attributes relating to the global entity? I'm also getting similar errors on a screen flow diagram in which these screens appear.
Regards,
Matt -
I was given an HTML document that has an XML document embedded in the HEAD. The XML document is escaped with html entities, so instead of angle brackets, you have the entity equivalent which is "ampersand less than semi colon" (if i typed it out literally it would look like an angle bracket here), or "ampersand greather than semi colon"
Is there a known method for expanding html entities? Or do I need to code up my own entity replacement routine?
Thanks for any help.I really can't imagine why somebody would do that. It just sounds like a loony idea to me. (I mean the part about putting escaped XML documents in the head of an HTML document, not what you propose to do about it.)
If that's really your requirement, then hopefully the escaped XML is the text inside an element. (In my example, it's the text inside the "head" element except that I put extra whitespace before and after it.) And hopefully the HTML you're getting is actually XHTML, so you could feed it into an XML parser.
If both of those conditions are true then what you should do is this:
1. Feed the entire document into an XML parser. Extract the text from the "head" element that's the child of the root "html" element. You could certainly use DOM for that if you wanted. This will be the XML document you're after, and the parser will have unescaped it for you.
2. Feed that text into another XML parser and proceed with whatever you have to extract from it.
But based on the looniness of this data format you probably won't have either of those conditions true.
If the data isn't XHTML then run it through something that cleans it up, JTidy or TagSoup or something like that.
If the XML document isn't the only text in an element then you'll have to do some string hacking to get rid of the other text. -
It is possible to embed a flash .swf inside an html web page.
Is it possible to embed an html file, such as a long text file, into a flash .swf space, such as a blank movie clip box?
Is there an alternative way to stick giant text files into a flash style document?I definitely discovered this yesterday. Bold and Italic work, but break, paragraph, A HREF, and Headers didn't. With so many restrictions it seems the htmltext option is worthless (kind of like a new Itouch on a camping trip).
Related question:
Is there a special protocol, in actionscript that allows Youtube videos to be embedded (rather than creating a hotlink to a new html page with the standard youtube embedding technique) ?
Almost related question:
I used this format:
clicke2.onRelease = function(){
getURL("http://www.google.com", "_blank");
for a winamp/mp3 radio station button, with the goal of doing something vaguely similar to shoutcast for a more specific list of internet radio stations, as shown below:
clicke4.onRelease = function(){
getURL("http://www.sky.fm/mp3/classical.pls", "_blank");
this opens a blank html document and plays in winamp. I tried this:
clicke4.onRelease = function(){
getURL("http://www.sky.fm/mp3/classical.pls", "_self");
but it did the same thing - opening a blank page along with the winamp. Opening the winamp is the goal, opening a blank page is not. Is there a way to not open the blank page? -
HTML random question score incorrect. SWF works fine
Version 8.0.1.242
Question pool 25 questions. Random Question slides inserted. All questions set to score 1. 24 are multichoice, all standard.
Published as HTML
Score reported is 1 out of x.
I have tested with 3, 5 and 25 random questions from the pool. But the score is always 1 out of x
Published as SWF
Works correctly
I really need the HTML version.
Closed, reloaded. Saved as - retested. Turned it off and turned it back on. Sacrificed a mouse...
AndyCorrect questions
....Should be same as total points scored anyway as there is 1 point for
each question. -
RoboHelp HTML Licensing Question
Hi all,
I am a consultant that has been preparing a RoboHelp HTML
help file for a client. At the moment, I have a license that I use
for development purposes but thus far the client is still awaiting
a purchase order for their own license for further maintenance and
upgrades to the project.
Question: can I provide the project output to the client for
their distribution via webserver without them having the license?
Or, do they need a license before they can put the production help
file up for browsing?
thanks
DaveHi Peter,
Thanks for the extremely fast response.
Dave -
HTML entity codes in XML do not display in IE browsers
I have an XML file generated via PHP/MySQL that contains HTML entities like " ² ". I'm using DW CS3 to create a Spry (1.6.1) dataset from the XML file and filling a Spry table.
If I open the table page in any IE browser (6, 7 or 8) the table is filled and displays OK but these characters are just missing, however, I can open this same page with the same Spry dataset in Firefox, Safari, Opera, Chrome, etc. and all characters are displayed correctly, it's just IE that refuses to play.
I've tried changing DTDs and UTF8 page encoding, nothing seems to make a difference.
Any suggestions greatly appreciated [ I can feel wrist slitting time approaching ... ]Hi Phil, it works!
Many thanks for your suggestions, they certainly helped solve the problem. I had previously tried wrapping in CDATA but I just got the entity codes displayed as text and sort of gave up looking there.
The solution is to use CDATA to wrap the relevant content AND to format the column type to "html" with set "ColumnType".
I also found that Entity declarations can be removed from the XML, so I shouldn't have to worry about any entity codes I might encounter in source data.
The site I'm working on will eventually be multilingual with supplied database content, so I can't control the source data and all site features must work equally well in all languages.
I've updated the sample file with some Russian source data and set both character columns to "html", it works just fine! It shouldn't matter which method gets used to insert any special characters.
http://www.tech-nique.co.uk/development/spry_data/spry-data-table.php
many thanks for all responses, much appreciated!
[ every day's a school day ~;o) ] -
Cross Platform HTML Email Questions
Hi,
I am creating new html emails from within dreamweaver for use in a service like constant contact. The service I use is COMF5. They have a rudimentary (but nice) WSYIWYG editor so I am giving it a whirl in Dreamweaver.
I first made the mistake of creating a beautiful file in CSS, pasted it in the editor and found divs and info floating all over the place.
I just found an article by an adobe pro on doing this and ZOMG, what a huge help. Here is what I think I underatand and my question:
1. Everything is tables, inclding the background which is created at 98%.
2. The body is to be nested tables.
3. Attributes are to be defined within the table by use of the property bar and not to include creating css rules.
4. The one exception is inline styles created within the boundaries of the table.
5. Important rule is to not have CSS sitting at top of code in document.
My big question at present is, how can I code links to be other than blue and underlined? I would use CSS to do that on my pages.
Thanks ain advance for further insight!
RobRob2Smith wrote:
Hi,
I am creating new html emails from within dreamweaver for use in a service like constant contact. The service I use is COMF5. They have a rudimentary (but nice) WSYIWYG editor so I am giving it a whirl in Dreamweaver.
I first made the mistake of creating a beautiful file in CSS, pasted it in the editor and found divs and info floating all over the place.
I just found an article by an adobe pro on doing this and ZOMG, what a huge help. Here is what I think I underatand and my question:
1. Everything is tables, inclding the background which is created at 98%.
2. The body is to be nested tables.
3. Attributes are to be defined within the table by use of the property bar and not to include creating css rules.
4. The one exception is inline styles created within the boundaries of the table.
5. Important rule is to not have CSS sitting at top of code in document.
My big question at present is, how can I code links to be other than blue and underlined? I would use CSS to do that on my pages.
Thanks ain advance for further insight!
Rob
I'll second what Joey said. Everything inline with email clients. They are too unreliable, especially with Outlook. Constant Contact though can be a pain in that you can't just add links to the email if you want them to be tracked. Search their documentation for the "SimpleURLProperty" tag that they use. If you do not include this, and the code they leave for you in the code view when you import your own code, none of their tracking features will work. And this goes for images as well as text links. Lots of conditions when sending through Constant Contact if tracking is a key. One of the key reasons I have used other services for awhile now. -
LIGHTSWITCH HTML ENTITY SOFT DELETION
Hello all,
I am working on LightSwitch HTML client application. I have an issue regarding entity soft deletion.
For your kind information, I have also referred Beth Messi's link:
http://blogs.msdn.com/b/bethmassi/archive/2011/11/18/using-the-save-and-query-pipeline-to-archive-deleted-records.aspx
My Scenario:
I have an Accounts table which is related to other tables.
In Accounts edit screen, I have a delete button. On deleting account from edit screen Account should be marked as deleted in database(i.e. soft delete) if it has no reference in any other table, otherwise show client side an error message
myapp.EditAccount.DeleteAccount_Tap_execute = function (screen) {
// Write code here.
screen.Account.deleteEntity();
myapp.applyChanges().then(function success() {
// Delete successful message.
}, function error(e) {
// Delete failure message.
According to Beth Messi's example: On deletion, the entity will discard changes and mark the entity as soft deleted.
So, If data is discarded then I do not get the server side exception " Could not delete. entity is in use." and my code inside function error() could not execute.
Any different way to accomplish this is also appreciated.
Thanks,
Ravi PatelHI Ravi,
As Beth’s blog said, it marks records for deletion without actually deleting them from the database. It discards the changes, this reverts the deletion.
As I know, myapp.applyChanges(), calling apply will save all the changes of the current changeset. If only one changeset exists, it will save them to the database. If the current changeset is a nested scope, it will commit the changes to
the parent changeset. I don’t think you can use myapp.applyChanges()
method in this scenario.
Best regards,
Angie
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Can multiple users on the same PC use Elements 11
I can access Elements 11 as myself but other users on the same PC can see the images but when the image is clicked it comes as a missing file.
-
Problem with Black Point adjustment
When making Black Point adjustments (with hot and cold highlights enabled) my photos suddenly turn completely blue. If I hold click the slider button, I can see the photo again as expected. I also notice this histogram is empty. I have the same probl
-
AJAX HTTP Posts: No Response problem (PT5)
To avoid cross-scripting popups and such I am posting to the gateway'ed address. I am still a bit new to PT so forgive me if I am calling this URL something else. (space in http to avoid linking). Making a 'GET' request works like a champ with this U
-
Unity Connection Speechview Transcriptions not showing on iOS devices
I finally got Speechview to work well, but unfortunately, the transcribed messages never show up on the iPhone/iPad. They do in Outlook.. Anybody seeing this issue?
-
I want to convert Oracle DMP (8i) to Windows using Exp/imp Utility Thanks in advance