Source file encoding

Hi all,
Here is my problem :
Page 1:
<%@ page contentType="text/html;charset=UTF8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
����@�
</body>
</html>
All the special characters display fine.
If I write:
Page 1:
<%@ include file="/page2.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body>
����@�
</body>
</html>
Page 2 : <%@ page contentType="text/html;charset=UTF8" %>
The display is ugly !!
Why ??
I understand that the directive
<%@ page contentType="text/html;charset=UTF8" %> defines the source file encoding but obviously the include directive does something I don't understand. Any help appreciated.
Thanks in advance,

The server/compiler you're using may need to see the content type of the source file you're using BEFORE it is able to process any of the code. Basically, when it gets to the<%@ include file="/page2.jsp" %> line, it doesn't know what content type it's supposed to be using yet (because it's in that separate JSP), and it pukes. You probably have to declare the content type before you can do anything else.

Similar Messages

  • The source file encoding may be different with this platform encoding.

    I got the below error after I have upgraded my Iplanet from 4.1 SP3 to 6.0 SP5 so what seems to be the problem here ? The code is working perfect under 4.1 SP3.
    [02/Jan/2003:00:01:35] info (10457): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP/software/data
    /stage/mainBean/printParser2.java:1: The source file encoding may be different w
    ith this platform encoding. Please use -encoding option to adjust file encoding,
    or apply native2ascii utility to make source file ASCII encoding.

    Looks like the file has been save in a non-ascii format. Perhaps someone opened and saved the file as a Word document and the compiler is unable to re-compile it. Try opening the file in Wordpad and resaving it in TextFormat.

  • UTF8 source files course errors

    I have source files encoded as UTF8 which compile and run fine, however JavaDoc is not happy about it. I've used:
    javadoc -encoding "UTF8" -charset "UTF8" -docencoding "UTF8" myPackage
    What's the correct way?

    You might try spelling it with a dash "UTF-8".
    I believe UTF-8 is an encoding, not a character set, so you
    would use:
    javadoc -encoding "UTF-8"
    You would use -docencoding if you want the HTML files to
    also be in UTF-8.
    Please let us know how this works.
    -Doug Kramer
    Javadoc team

  • Replace source file in Media Encoder

    Is it not possible to replace the source file being used in Media Encoder to encode files?
    Every time I try to do this it gives me red render frames. Even if the clip is the exact same length. Sometimes ill render a master out, and then create a setup with inpoints and filenames and then relize there is an error in the master but I cannot just re-render the master with the fixes and re-use all the settings I have.
    In Sorenson Squeeze I can just reset the status of the encode and it will just use the new version of the source file with no issues at all.

    This is an unsupported workflow and as such your results may vary. It is very possible that in some cases this would work, but my recommendation would be to simply import the new master and apply the same preset that you used the first time. That being said, please feel free to submit a feature request if this feature is important to you: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Encoding of java source files

    I've sucesfully compiled java source files (*.java files) over a lot of different encodings (ANSI, Unicode, UTF8, etc). My IDE (Eclipse) has Cp1252 as default on WIndows OS.
    There is an 'official' encoding for source files ?

    Short answer is Unicode -but that's not enough.
    From Java Language Specification:
    "Except for comments (�3.7), identifiers, and the contents of character and string literals (�3.10.4, �3.10.5), all input elements (�3.5) in a program are formed only from ASCII characters (or Unicode escapes (�3.3) which result in ASCII characters). ASCII (ANSI X3.4) is the American Standard Code for Information Interchange. The first 128 characters of the Unicode character encoding are the ASCII characters."
    There's more that applies, I'll not quote it, read chapter 3 of JLS for details.
    http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html

  • Media Encoder CS5 - Source File has a Bad Header

    I've got a system demonstration recorded as a .wmv file. I tried adding it to Adobe Media Encoder and I get the following message: "The source file has a bad header. Please check that it is a valid file."
    Here is my file name: Web App III part 1.wmv
    I even tried changing the file name to: WebApp3Rec1.wmv
    It still won't work. Help!

    Hi, a little more info that may help. I have saved PowerPoint 2010 files as .wmv on one computer and if I then try to convert them using Adobe Media encoder on a different computer I get the same bad header message as you. (First computer running vista, second running W7.) However, if I use the second computer to save the PowerPoint file as a .wmv then Media Encoder has no trouble converting it.
    It is very frustrating.

  • CS4 Encoder can't find source file

    Hello - I recently deleted a number of temporary files on my C: drive in order to free up space.  I then tried to export from CS4 to Encoder and it now says that it can't find the source file.  I have tried sending the exported file to a number of locations and I get the same response.
    I've noticed some people on other threads having a source problem with Encoder.  Mine definitely started after I deleted some files (although I don't remember seeing anything that had an Adobe tag on it).  Before this, it worked perfectly.  I'm hoping to avoid a re-intstall.  Below is a sample error message.  Thanks, Jason
    - Source File: C:\DOCUME~1\Jason\LOCALS~1\Temp\Squares Triangles.prproj
    - Output File: D:\Jason Jason\Squares and Triangles\Recording Dec. 20th\Recordings.mpg
    - Preset Used: Custom
    - Video:
    - Audio:
    - Bitrate:
    - Encoding Time: 01:51:07
    21/12/2010 11:24:38 : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.
    - Source File: C:\DOCUME~1\Jason\LOCALS~1\Temp\Squares Triangles_1.prproj
    - Output File: V:\Squares Triangles\Recordings.mpg
    - Preset Used: Custom
    - Video:
    - Audio:
    - Bitrate:
    - Encoding Time: 01:52:01
    21/12/2010 11:25:33 : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.

    Thanks, Jeff.  I reopened CS4 and tried to export media again.  I'm exporting media to my V: drive, basically my dedicated video media drive.  It still can't find the source.  I also tried to shift the media cache drives over to the V: drive, as this has the most memory on the computer.  I guess I'm partly confused as to why it says that the source is on the C: temp drive, when I'm telling it to export somewhere else.
    Jason

  • [SOLVED] Can't save UTF-8 encoded source file in IDE

    I had a problem where I could not save a c++ source file from anjuta using the gtksourceview plugin, but could using the scintilla plugin.  I would get an error message with "invalid byte sequence in conversion input" in the text.  Eclipse CDT also would not save a modified file with a similar error message.
    The fix was to uncomment the proper lines in the file /etc/locale.gen for my locale and run locale-gen as described in the Archlinux wiki article "Configuring locales."
    I did not find any help for this problem using internet searches, so I thought I would document it here.  Just in case someone else fails to setup their locale and runs into the same trouble.

    I think so (haven't checked), but it is a really simple test xml which is not really error prone).
    But the problem is a different one, because I also just tried to read a txt file with some Japanese characters into an NSString using initWithContentsOfURL.
    When I print the string in the console, I only get messed up characters (the latin characters next to the Japanese are displayed fine).
    It is a general problem of reading out an UTF-8 file from an url.
    Spent the whole last night to google something helpful but couldn't find anything. Now I'm tired at work
    Thomas

  • Cf and encoding of source files ...

    hello,
    i need to set default encoding of cf, problem is that
    -Dfile.encoding
    no longer works (from jvm 1.4.1). how to do this ?
    thanks,
    jan

    no i mean encoding used while compiling cf code to java
    until now i discovered that used encoding equals to java
    encoding
    (file.encoding property of System class) that in windows
    somehow relates
    to locale used by user that runs cf. i want to explicitly
    choose encoding.
    CutterBl wrote:
    > You mean the default encoding of your display code?
    Isn't this something handled in the header of your html page?
    >
    > <meta content="text/html; charset=UTF-8"
    http-equiv="content-type" />

  • PDF outputs continually crash after editing an html source file

    I have English and multiple localized versions of a RoboHelp webhelp project. I have created several PDF outputs for the localized versions. I can generate the PDFs fine when I don't touch any of the html source files.
    However, I had to make a change to one of the html source files to remove a <dl> from the source file. After making the change to the source file in an outside text editor (Notepad ++), I went back to RoboHelp to generate the PDF, and the PDF output crashed.
    The reason I was using an outside text editor is that when I tried to edit the <dl> HTML tags in RH, its HTML editor deleted all text within the tags being edited.  There was no undo at this point.  In anotehr attempt to use the RH Design editor, RH didn’t delete the <dd> or <dt> tags when those tag styles were changed to <h4> and <p>, respectively. RH inserted the new html wrapper inside the existing ones, instead of replacing it.
    Also, during the PDF generation process, a Visual Basic error message will appear dozens of times stating that the application was interrupted.  I must press OK to continue for each error message.
    What gives with the PDF generation failing like this?

    I hate to say it but it sounds like something you are doing in the external editor is not liked by RoboHelp.
    It could just be the way that text editor codes the file. I use EditPad Pro and that has various options for text encoding. My guess is your editor is not set to what RoboHelp expects.
    Aftr that what I would do here is create a new one topic project and recreate the problem, with the minimum of text. It may help you spot the code RoboHelp does not like.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to deal with special character in source file

    Hi experts,
                      i am doing a file to file scenario in which my source file contains many special characters when i am puting this file into moni its going with the special character .My source file is a fixed length file so in content conversion i have specified the file length but due to these special charcters these field lenght is also varing.So please guide me how to deal with these special characters in sender adapter
    regards,
    Saurabh

    you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    For more details check this guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • Dynamic File Name depending on the Source File name

    Hi Experts,
    I have a problem like Dynamic File name depending on the Source File Name. I will explain with example as follwos
    Source File name                 Targer Folder/Filename
    NK01.VR59.L2007030         VR59/Rec.l200
    NK01.VR71.L2017030         VR71/Rec.l201
    NK01.VR77.L2027030         VR77/Rec.l202
    See above the exaple, Depending on the Source file name, I am deciding where i need to place my file and what name i need to name it.
    So please suggest me the solution and How can i do this with a single communication channel ? Do i need to create multiple CC for each folder??
    Points will be rewarded for Valuable anwer.
    Thanks in Advance,
    Best Regads,
    Vijay

    Hi VIjay,
    Thanks for quick reply. But i am getting error in End to End Scenarios only. If i remove the Return " "  statement from the UDF, while activating it is showing the error saying like missing return statement. I also mapped to the top most node to this UDF.
    I am getting the following error in End to End error Scenarios:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Target_File_determined_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_MM_Target_File_determined_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: Fatal Error: com.sap.engine.lib.xml.parser.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • Issue with Pro Res sources when encoding in Media Encoder.

    There seems to be a big issue with Pro Res sources in Media Encoder. I've noticed that when exporting using the 'software only' mode my graphics and titles look horrible, they are pixelated around the edges and the compression looks bad. This issue only happens when it's being made from a Pro Res source, if I make the exact same file Uncompressed this issue is resolved. If I use the 'Cuda' option (which I already know is the better option) this issue is resolved. The thing is, in a work environment not all of our systems are Cuda enabled and I would like to use Media Encoder as a exporting option overall. I love Media Encoder, it's fast and easy to use but this Pro Res issue is huge because the majority of the time we are working in Pro Res. I also did a test out of Avid Media Composer to Media Encoder, I sent a reference file referencing the Avid MXF material and the issue is gone, this seems to my knowledge to be a Pro Res only issue. The settings I am exporting to is 960 x 540 h.264 and also .mp4. This is coming from a 1080p source and yes I do have the 'maximum render quality' checked for best scaling. I understand that Software only vs Cuda and Open CL use different algorithms when scaling but this seems crazy to me that it would look  this much worse.
    Anyways if somebody can please look into this that would be great, this seems to be an issue where I can't continue at this moment to use Media Encoder. Making my source files Uncompressed every time to do an export is just not a real workflow I want to do.
    On a side note I've also recently noticed on a clip that had text over a grey background that there are lines going all down the screen evenly when exporting to even a non scaled 1080p .mp4. Once again, this issue goes away with any format but Pro Res. The weird part is this happens even with Cuda enabled. This is why I am thinking Media Encoder is having some sort of issue with the Pro Res codec.
    I am on a current new 27'' fully loaded iMac with the latest Adobe CC updates.
    Has anyone else experienced this?
    thank you

    No, it is why advance users do not use the wizard.
    Have a look at OpenOffice.org and its form creation. Once you add your fields in OpenOffice.org, just export to PDF and the form fields will be named just like you named in them in OpenOffice.org and the drop down values carry over.

  • Source File shows White Screen in Source + Program Monitor

    Hello,
    I'm having an issue with only one of three media files in my Premiere Pro CS6 project.
    When I try to preview this one video file in the Source Monitor, it shows only a white screen, and I can only move the playhead to the beginning and end of the file. I then plopped the clip into the sequence to see if rendering it would give me better luck in the Program Monitor, yet to no avail. The file supposedly successfully rendered, yet when I open the subsequently created "Preview" file in VLC, the entire clip is completely white for its entire duration. (I think it's interesting to note that VLC plays the source file correctly, and that this footage has been successfully used in a separate project in Final Cut after converted to ProRes with Compressor.)
    I've opened the file with GSpot to make sure I had the Codec installed, yet GSpot doesn't list any Codec information for this file. It only lists Container information.
    (Screen shot of GSpot with white-screen issue in the background)
    My Video Card drivers are up to date, taken directly from the chipset's manufacturer's website.
    Codec: (See post below for Media Info dump)
    Premiere Pro version 6.0.3 (001 (MC: 264587)), installed in English.
    Sequence Settings: DVCPROHD 1080i50 default settings (framerate changed to 50FPS)
    Windows 7 x64 Service Pack 1, English, 1440x900 32bit Color
    Pentium(R) Dual-Core CPU  T4200 @ 2.00 GHz
    2GB RAM
    Mobile Intel(R) 4 Series Express Chipset Family, Driver version 8.15.10.2869
    53.2GB of free space on the SSD all of the media files, the operating system, the Adobe Premiere installation, and scratch disk is located.
    I'm unsure of the camera used to record this footage.
    Thanks for reading my post, and let me know if you need any more information.

    General
    ID                                       : 255 (0xFF)
    Complete name                            : C:\Video Workspace\Source Media\VSB 01 Stand Bühnenkamera VORNE.mpeg
    Format                                   : MPEG-TS
    Commercial name                          : HDV 1080i
    File size                                : 11.4 GiB
    Duration                                 : 1h 0mn
    Start time                               : UTC 2011-10-16 17:36:49
    End time                                 : UTC 2011-10-16 18:37:17
    Overall bit rate mode                    : Constant
    Overall bit rate                         : 27.0 Mbps
    Maximum Overall bit rate                 : 33.0 Mbps
    Encoded date                             : UTC 2011-10-16 17:36:49
    Video
    ID                                       : 2064 (0x810)
    Menu ID                                  : 100 (0x64)
    Format                                   : MPEG Video
    Commercial name                          : HDV 1080i
    Format version                           : Version 2
    Format profile                           : Main@High 1440
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=12
    Codec ID                                 : 2
    Duration                                 : 1h 0mn
    Bit rate                                 : 25.3 Mbps
    Maximum bit rate                         : 25.0 Mbps
    Width                                    : 1 440 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 25.000 fps
    Standard                                 : Component
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.650
    Stream size                              : 10.7 GiB (94%)
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    Audio
    ID                                       : 2068 (0x814)
    Menu ID                                  : 100 (0x64)
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Codec ID                                 : 3
    Duration                                 : 1h 0mn
    Bit rate mode                            : Constant
    Bit rate                                 : 384 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -40ms
    Stream size                              : 166 MiB (1%)
    Menu
    ID                                       : 129 (0x81)
    Menu ID                                  : 100 (0x64)
    List                                     : 2064 (0x810) (MPEG Video) / 2068 (0x814) (MPEG Audio) / 2069 (0x815) () / 2065 (0x811) ()

  • Encore CS4 error "could not read from the source file"

    - Source File: C:\Users\Anil\AppData\Local\Temp\2013 11 08 c Big Budha_9.prproj
    - Output File: F:\Adobe Encoded Blu-ray\For Disk #013\Disk#013-B\2013 11 08 c Big Budha.m2v
    - Preset Used: Full HD 1080i [MPEG] 30 MBPS
    - Video:
    - Audio:
    - Bitrate:
    - Encoding Time: 01:49:53
    25-Jan-14 2:50:32 PM : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.
    i have tried creaeted a NEW Premiere Pro project and still get the same error again ... can someone help me to figure out what is wrong ...

    Hi Neil
    I have been using file names with spaces and it has been working fine. As stated in reply to Jones, uninstall and reinstall of Premiere Pro CS4 has helped to get rid of this error.
    also i did not use Dynamic link, but was trying to create MPEG file using Media Encoder and then import it in Encore.
    your suggestion for H264 seems good and will try it.
    x264 Pro is for CS5 and above versions, so it seems i can not use it and have to manage with Adobe Media Encoder's default. Hope i will not have any major technical issues.
    please suggest me for below:-
    1) i have 4 hours of Full HD footage and made 1080i MPEG2 files of 30mbps to fit in 2 seperate Bluray Disks.
    2) now i plan to put all in one Single Bluray Disk by reducing MPEG2 file average data rate to 15mbps. will that work or is there any limitation of time in Bluray Disk.
    3) Will it be ok to create H264 files at 30mbps [as you mentioned H264 reduces file size to half of MPEG] and still be able to fit 4 hours footage in one BR Disk ?
    4) even though i specify Min 10 Target 25 Max 30 data rate for MPEG files creation, it creats file at data rate of 30 mbps, can you explain why it is happening as i thought my target rate should be 25 mbps and not the maximum rate specified.
    Thanks ...
    PS...
    my source file is .mov 1920 x 1080i 29.97 fps from Canon 6D. first i tried to create progressive file in Encoder but while imported in Encore realised at 29.97 fps, it allows only interlaced file and had to transcode back to interlaced. so i stick to interlaced file.
    Canon 6D also allows me to shoot in 24fps [motion movie] which Encore can handle as progressive file for authoring. What are the pro and cons of shooting in 24fps, if you can suggest.
    Message was edited by: AnilHVarma

Maybe you are looking for

  • How to rename a column name in a table? Thanks first!

    I tried to drop a column age from table student by writing the following in the sql plus environment as : SQL> alter table student drop column age ; but I found the following error ORA-00905: 缺少关键字 (Lack of Key word) I have oracle enterprise edition

  • Can't download iCloud to my new PC

    When I try to download the iCloud control panel on PC it tells me that there was an interuption in the process & to try again.

  • Pivot charts customization

    Hello, I have some questions concerning charts/pivot charts : 1- Is it possible to cusotmize the data labels of x-axis like this : on my x-axis, I have the number of the month and the name of the month (so I see 1,January 2,February ...), and I would

  • DVD disk burned successfuly but is unrecognized

    I have tried to burn 2 different iDVD 5 projects with the same results: 1. The dvd seems to burn OK; no errors 2. The DVD mounts OK, DVD icon OK, Video TS is there 3. However, DVD player does not recognize the disk for playback nor does it play on my

  • Object Dependancy for CHARS in Easy DMS

    Hi All I have given object Dependancey for some CHARS in SAP DMS.Its working fine in DMS , but when I check the same thing through Easy DMS, the dependancy is not working.. I can see all the CHARS and all Values are displayed there.. Can someone guid