XDB returns javascript with Content-type:windows-1251. I want utf-8.
Release 11.1.0.6.0 - Production on Пн Апр 27 22:25:51 2009
Hi.
I have static javascript file main.js. I want to use it in my APEX application.
I use XDB and I put this file via FTP in /public/htmlbuilder folder. This file is UTF-8 encoded without BOM.
But when I request this file XDB returns it in windows-1251 encoding.
c:\temp> get -de http://127.0.0.1:7777/public/htmlbuilder/main.js
Content-Type: application/x-javascript; charset=WINDOWS-1251
So my question is How can I make XDB return main.js in utf-8 charset
I try adding
<charset-mapping xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">
<extension>js</extension>
<charset>UTF-8</charset>
</charset-mapping>
to xdbconfig — didn't help.
Thanks in advance.
P.S. Sorry, English is not my native language.
Thank you Marco, but this didn't solve my problem.
Let me explain one more time.
I put main.js in XDB via FTP.
When I type in Firefox address bar http://127.0.0.1:7777/public/htmlbuilder/main.js
Firefox shows me this file in windows-1251 encoding. And my preferrable encoding in Firefox settings is utf-8. .
I found out that XDB include header
Content-Type: application/x-javascript; charset=WINDOWS-1251
in HTTP Response headers.
I wonder where XDB takes this windows-1251. How can I change it to AL32UTF8?
Similar Messages
-
How to Read a Message with Content Type multipart/alternative
Hi ,
I need to write a POP3 Client to read email message ..but some times the messages comes with content type multipart/alternative
how to parse it and read only one of the content :
for example :
This is a multi-part message in MIME format.
------=_NextPart_000_12C25_01C6B64F.09226B00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Assignment to workgroup Name 1 : L2 SD Service Delivery Apps Spt
Open CI Search Code : HPSD
Description : tesat
General Information :
Is the workgroup owner Aware of the addition to Workgroup : Yes
Workgroup to be added :
L2 SD Service Delivery Apps Spt
------=_NextPart_000_12C25_01C6B64F.09226B00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<br><P>Assignment to workgroup Name 1 : L2 SD Service Delivery Apps =
Spt</P>
<P>Open CI Search Code : HPSD</P>
<P>Description : tesat</P>
<P>General Information :</P>
<P>Is the workgroup owner Aware of the addition to Workgroup : Yes</P>
<P>Workgroup to be added :</P>
<P>L2 SD Service Delivery Apps Spt</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
------=_NextPart_000_12C25_01C6B64F.09226B00--
The Same message is in text as well as HTML so not sure how to read it .
currently my program is as follows
for (int i = 0; i < found.length; i++) {
Message m = found;
// Get some headers
Date date = m.getSentDate();
Address [] from = m.getFrom();
String subj = m.getSubject();
String mimeType = m.getContentType();
System.out.println(date + "\t" + from[0] + "\t" +
subj + "\t" + mimeType);
Object o = m.getContent();
if (o instanceof String) {
System.out.println("**This is a String Message**");
System.out.println((String)o);
} else if (o instanceof Multipart) {
System.out.print("**This is a Multipart Message. ");
Multipart mp = (Multipart)o;
int count3 = mp.getCount();
System.out.println("It has " + count3 +
" BodyParts in it**");
for (int j = 0; j < count3; j++) {
// Part are numbered starting at 0
BodyPart b = mp.getBodyPart(j);
String mimeType2 = b.getContentType();
System.out.println( "BodyPart " + (j + 1) +
" is of MimeType " + mimeType);
Object o2 = b.getContent();
if (o2 instanceof String) {
System.out.println("**This is a String BodyPart**");
System.out.println((String)o2);
} else if (o2 instanceof Multipart) {
System.out.print(
"**This BodyPart is a nested Multipart. ");
Multipart mp2 = (Multipart)o2;
int count2 = mp2.getCount();
System.out.println("It has " + count2 +
"further BodyParts in it**");
} else if (o2 instanceof InputStream) {
System.out.println(
"**This is an InputStream BodyPart**");
} //End of for
} else if (o instanceof InputStream) {
System.out.println("***********************************This is an InputStream message**");
InputStream is = (InputStream)o;
/* if(m.getContentType().equalsIgnoreCase("multipart/alternative")) {
MimeMultipart mp = new MimeMultipart();
// Assumes character content (not binary images)
} else {*/
BufferedReader reader
=new BufferedReader(new InputStreamReader(is));
String thisLine=reader.readLine();
while (thisLine!=null) {
System.out.println(thisLine);
thisLine=reader.readLine();
So when the Content TYpe is multipart/alternative it goes into InputStream message .
any help and ideas to handel such situations ?
Thanks
San
Message was edited by:
sanrosh_95Try reposting that with tags (replace the {'s with ['s).
Long story short, I think the FAQ and examples would go a long way towards explaining this, but you basically can check the content type, or check if the content contains parts, and parse each part separately. -
Batch uploading to a document library with content types
Hi,
I have a document library with two content types. Now I need to upload documents to this document library. However, if I have large number of files, then uploading through web UI is a pain as metadata will not be attached. How should I automate it from
my computer using powershell without relying on Administrator to run the powershell script. Or is there any other way to do it without using powershell? or can powershell be run remotely from an end user computer?
Note I am using SharePoint 2010.Hi,
According to your post, my understanding is that you want to butch upload files to document library with content types.
There are two good tools in CodePlex which can batch upload files with content types, you can have a look at them.
DocMetaMan : Bulk document Upload and MetaData (Taxonomy) Setter
SharePoint Multiple File Upload Script
There are some third-party tools which can achieve the same scenario, you can refer to it.
http://sharepoint.stackexchange.com/questions/74694/uploading-multiple-files-with-metadata
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Hi Team,
I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
<GetStatus> message is being constructed in the orchestration and URI is constant to access.
Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
System.Net.WebException:
The HTTP request is unauthorized with client authentication scheme 'Basic'. The
authentication header received from the server was 'Basic realm='.
Authentication failed for principal Basic. Message payload is of type:
String
In Fiddler, request looks line following
POST <https://URL/GetServiceReopnse HTTP/1.1
Content-Type: application/xml
Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
Host: <Server name>
<GetStatus XMLNS="http://server.com/.....">
<OrgId>232323</OrgId>
<HubId>3232342323</HubId>
</GetStatus>
MMK-007First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
Start with the WCF-Custom Adapter and select the customBinding.
You should start with the textMessageEncoder and httpTransport and go from there. -
Vendor Return process with order type ZPO - movement type 161
Dear Friends ,
Here is my question
There are two scenarios for vendor return
while UD and stock posting , we directly post the stock to vendor return 121
but what is the process for vendor return after we move the stock to blocked stock and then return to vendor
I tryed to create new PO with order type PO return , when do the migo GR system always propose 161 and creating inspection lot
how to stream line the process without inspection lot
Thanks & Regards
RajDear Gajesh,
many thanks
but when i enter the Retrun PO in MIGO system automatically propose the movement type 161 , is there any way to change the movement type , is it standard sap settings
Please advice
Thanks & Regards
Raj -
E-Mail recevier with Content-Type: multipart/mixed
Hi All,
I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
Thanks in advance,
RuchiHi Ruchi,
You need to use Java Mapping or UDF to create Multipart/Mime
Check this excellent blog by stefan.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
Also check this thread for your solution
http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095 -
CFHTTP request with content-type "application/atom+xml"
Is it possible to send a HTTP request (method="post") with a body that has a set content-type (such as "application/atom+xml")?
using CFHTTP and CFHTTPPRAM, it seems the tag does not accept a content-type.
<cfhttpparam type="body" value="#myAtomXML#">
is there anyway to have CFHTTP , post the body with a given content-type?
IF NOT, could anyone point me to the right direction to accompolish this using Java?Hi,
Have you tried the "mimetype" attribute of the <cfhttpparam> tag?.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_g-h_10.html -
Creating custom form with content type list - Shaepoint 2013 list
Hi All,
I have a list with a content type. So basically i have the default content type and another custom one.
I would like to customize the forms and taught of using sharepoint designer.
Is this a good approach or is it better using infopath.
When i try using infopath i don't know how i can using content type to create forms.
I basically have 2 forms based on the content types how can i separate this when using custom forms and what would be the best practice?
Cheers and thanks in advanceHi Patrick,
According to your description, you want to create a form for each content type in a custom list with multiple content types. Is it right?
If we use Infopath to customize forms for a list with multiple content types, it only customizes the default content type, the forms for other content types don't have changes.
For your requirement, I suggest you use SharePoint Designer to create forms for content types.
More information about how to create forms using SharePoint Designer 2013:
http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2012/09/20/how-to-create-custom-forms-using-sharepoint-designer-2013.aspx
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
Hi All,
I have set the content type to text/html by using the following statement in jsp
<%@page contentType=�text/html�%>And if I give
out.println("<a href="aaa.do">Click here</a>"); it is showing me a link to click here that's fine.
But my problem here is that I am using struts <bean:write name="user1" property="subject"/> tag and the data in the subject field is Click here i.e the output from the database, now its not showing the link instead displaying every thing even if the content type is set. How can I achieve this? please help me out.in your bean:write tag try setting the filter attribute to false, like so
<bean:write name="xxx" property="xxx" filter="false"/>
http://struts.apache.org/1.2.9/userGuide/struts-bean.html#write -
New Forms with Content Types copies all form fields.
I'm using the "NEW" button to create a form based on a Content Type. I know how this worked in the past and I can attach to the right content type and everything.
My problem is that the form generated is wrong. It doesn't take the Content Type selected into account. Instead it just displays everything in the form.
Anyone else have this issue?
David JenkinsHi David,
We need more information to reproduce this issue, could you provide the steps how you did the form based on a content type?
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
Dispform.aspx with content types
SharePoint 2013 farm.
I have two content types in a list. I need to change the dispform.aspx.
There are different fields for both content types, so copying the dispform.aspx to create and modify a new one is not a solution I think. I am not sure. i am new in this :)
Can someone give me a step by step, how to modify the displayform of a list so that I can customize the the form for both content types.
best regards,
OlafurHi Olafur,
There is a way in SharePoint Designer to specify which form the different content types in a list or library will use.
Open up the list, click on the content type name:
On the Content Type screen, under the forms section, there is a text field where you can enter the relative path to the new form that you created.
Reference:
http://social.technet.microsoft.com/Forums/en-US/8f62d12d-8b72-40c7-baa4-59f4c211e86a/calendar-unique-newform-for-each-content-type?forum=sharepointgeneralprevious
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Can't read Messages with Content-Type multipart/mixed
For many years I have used „QuickMail Pro“, as my favorite Mail-Client. Now I had switch to Apple Mail. I hoped, to be more compatible to other „modern“ Mail-Clients. So could it be, that Apple Mail can not read Messages from Type <multipart/mixed>? I only see the Header-Information and instead of the Message-Text there is only an Error-Message:
<Diese E-Mail kann aufgrund ihrer Formatierung nicht angezeigt werden. Bitten Sie den Absender, Ihnen die E-Mail erneut in einem anderen Format bzw. mit einem anderen E-Mail-Programm zu senden.
multipart/mixed>
Did anyone know a simple Way, to read this Messages.
My old QuickMail has no Problem with this Type.Hi Ruchi,
You need to use Java Mapping or UDF to create Multipart/Mime
Check this excellent blog by stefan.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
Also check this thread for your solution
http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095 -
List custom form with content type drop list
We're building retention polices for our documents we have 18 document type each has different retention period , when user enter document information we need to choose a document content type from dropdown list instead of choosing it from New Item
in ribbon menu, then complete other form fields and save, also ability to change the content type for document item, what is the best practice to complete this task.
BRHey,
Have below link for your reference. It may help you.
How to pass query string parameter to SharePoint
list forms
Thanks. -
Conditions record for returns order with order type "RE" Modification
Hi,
How can I gay out the EDI1 conditons row ( Customer expected price ) for returns order, so that the customer price is not considered.
Current Scenerion: when we create a returns order "RE" with reference to standard order "OR" it pulls out the price details from the standard order, but then in the conditions tab the EDI1 ( customer expected price ) is still active which allows the user to enter the new price. When the user enters the new price, the price for that line item is getting updated with this new customer expected price.
Can any one help me out on how to gray put that row, so that the user is not allowed to enter a new price during rreturns.
Thanks in Advance!!Hi
This will be updated automatically when generate planned orders thru MRP. (MD02)
regards
Srinivas -
Post to Returns stock with movement type 632
Hi all,
I have configured SD Customer Consignment for my client. When consignment goods come back from the customer Movement Type 632 is used en the goods are posted in unrestricted use. My client want these goods to be posted in the Returns stock. Does anyone know if this is possible?
Movement type 651 posts to the Returns stock. Where is teh actual setting made that this movement type posts to Return stock. Can anyone explain to me how this works.
Thanks in advance.
regards,
RoelHave tested your scenario- Just now.
Though you can change the mov type in sch.line cat, but it acts like as normal return scenario, so you will be loosing the track of Inventory available @ Customer as part of Consignment.
Still, if you change the mov type, you will not be able to perform PGR for Consignment Returns in VL01N,its becasue that, special stock indicator-W in item cat:VOV7.
FYI,
Sales doc type - Item cat -- SCh.line Cat- Mov type
Consig Fillup - KB -
KBN -
E1/E0 - 631
Consig.Issue -KE--KEN--
C1/C0- 633
Consig.Ret.-KRKRND0----634
Consig.Pickup-KA--KAN--
F1/F0- 632
Maybe you are looking for
-
Hyperlinks in my WORD document are disabled once converted to ADOBE. How can I fix?
Problem just started once I had to reload ADOBE to a new laptop. Suggestions?
-
PSE 9 Organizer error codec trying to add an Elements audio file to slide show
I am using PSE 9 to build a slide show. When I add audio, I can use mp3's from my music library in the slide show without any issues ... but I am getting the following error when I try to add an Elements audio file (example " A _Taste_Of_Sicily.mp3)
-
ClassCastException when using javax.xml.soap.DetailEntry
I am using the Java Web Services development pack and I'm getting a ClassCastException when trying to use a DetailEntry object. My code is basically as follows: SOAPFault fault = responseSoapBody.getFault(); Detail detail = fault.getDetail(); Iterato
-
No EM Console after installation
The EM Console not create successfully. I am installing Oracle10g(10.2.0) on OEL5.0 and no firewall on it. The error massage shows as following: Aug 23, 2008 3:16:07 AM oracle.sysman.emcp.EMConfig perform CONFIG: Stack Trace: oracle.sysman.emcp.excep
-
64bit oracle server with 32bit client on the 64bit win2k8
I am working on migrating application server end run on 32bit win2k3 to 64bit win2k8.What i do below: 1.installed 64bit oracle server 11g 2.installed 32bit oracle client 3.installed application server end I want to know is that right?And i found that