Web.show_document cannot display file with Chinese char in IIS 6
Dear all,
There is a problem that web.show_document cannot display file with Chinese char in IIS 6, but works fine in IIS 5.
Is it a server problem or is there any setting in server? Do you know how to solve it?
Big Thanks
JY
Hi,
As Francois mentioned, this issue has nothing to do with forms / web.show_document. web.show_document, just opens the URL specified as parameter. So, if you run the URL (that you've passed as argument for web.show_document), directly in the browser, you would be getting the same issue.
So, as you said, if it works fine in IIS 5 and does not in IIS 6, it would be an issue with the IIS and not forms. You might want to check out the IIS 6 release notes / documentation for any known issues / raise an issue in that.
-Arun
Similar Messages
-
Zip.ZipInputStream cannot extract files with Chinese chars in name
Dear friends,
Peace b upon u!
I am trying to read a zip file (~3000 files)containing one
or more files with Chinese, Japanese or Korean names, the
getNextEntry method throws an IllegalArgumentException as below after extracting just ~300 files as below:-
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(Unknown Source)
at java.util.zip.ZipInputStream.readLOC(Unknown Source)
at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
at testZipFiles.getZipFiles(testZipFiles.java:65)
at testZipFiles.main(testZipFiles.java:18) issue:java.util.zip.ZipInputStream cannot extract files with Chinese chars in name
Category java:classes_util_jarzip
Plz let me know 1 of the ways which I can solve this issue.
1)if someone has JAVA DCOMPILER plz send the SOURCE Code
for the ZipInputStream.class to me..I need to edit it using 1 of the solutions as provided below which I googled.
2)If there is an alternate or upgraded java.util.zip.ZipInputStream or any org.apache.tools.zip.* package which can read such files..If yes where I can download the same on net.
3)Any other easier solution, which can let me extract all files (by excluding Chinese files thru CATCH) without the extractor process to fail altogether.
On net I found that the only solution with this is:-
- edit the new ZipEntry, remove the static initializer that calls
the native methods initIDs().
this step seems a bit scary, but it's according to the
workaround
to bug #4244499 (the workaround of Olive64, THU JUN 05
01:55 P.M. 2003),
that handles a similar bug at the ZipOutputStream.
Now you have a ZipInputStream that supports multi-bytes
entry names.
to extract the zip file, using the fixed code that is offered
above,
create a function that gets an "encoding" string, a "destPath"
string
and a "sourceFile" (zipped) and does :
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
zipinputstream = new ZipInputStream(new FileInputStream
(sourceFile),encoding);
zipentry = zipinputstream.getNextEntry();
while (zipentry != null) { //for each entry to be extracted
String entryName = zipentry.getName();
int n;
FileOutputStream fileoutputstream = new FileOutputStream
( destPath + entryName );
while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
fileoutputstream.write(buf, 0, n);
fileoutputstream.close();
zipinputstream.closeEntry();
zipentry = zipinputstream.getNextEntry();
}//while
zipinputstream.close();Hi friend,
We'd better to ask one question in each thread. If you have another issue, you can consider to open up a new thread in this forum.
Now for the first question, do you mean this picture? It throws access exception in archive2.
If so , because your extractPath is a path, not a directory.You should add +"xxx.zip". For more information, please refer to
ZipFile.Open
Method (String, ZipArchiveMode).
For the second question, you can use the following code to skip the error message.
while (true)
try
//do something;
catch (Exception ex)
{ continue; }
Good day!
Kristin
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. -
Problem with zipping file with chinese chars
I need to zip a html page which contains some chinese characters, I am able to zip it and create a zip file
but the problem is when i open the zip file and view the html file it displays junk characters instead
of chinese characters
Here is what i am doing
ByteArrayOutputStream bStream = new ByteArrayOutputStream();
ZipOutputStream zStream = new ZipOutputStream(bStream);
ZipEntry zipEntry = new ZipEntry(htmlFilename);
zStream.putNextEntry(zipEntry);
ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
PrintWriter writer = new PrintWriter(
new OutputStreamWriter(dataStream,"UTF-8"));
writer.write(htmlString); //htmlString is the string which contents the html contents which has chinese char
writer.close();
zStream.write(dataStream..toByteArray());And when you view the unzipped file, are you using something that realizes that you encoded your data using UTF-8? My guess is that you are not.
PC² -
Error: Cannot display file. The file contains 0 bytes
Hi,
I am getting the below error when accessing a a document using Autovue from Documentum:
"Error: Cannot display file. The file contains 0 bytes"
Please note, autovue server is up and running and I get the below when accessing: http://WebserverName:7002/VueServlet/servlet/VueServlet
Oracle AutoVue
VueServlet for AutoVue 20.2.2 Build: 8633 (2013-08-21)
Servlet tunneling to server[0] (IP=xxx.xxx.xxx.xxx)
Connection state: OK
AutoVue server is up and running.
Build: 8633 (2013-08-21)
Server Load:
Server: farm-server[0] (xxx.xxx.xxx.xxx:xxx) Processors: 2
I hope to hear from someone soon!
CheersThat means that you documentum integration is not working properly
you will need to debug the integration you are using and attach logs for the server, integration servlet (VueLink for documentum, which version?)
Please review the KB, there are items associated with it
Oracle AutoVue VueLink for Documentum Troubleshooting Center(Doc ID 1348153.1) -
How can I see file with chinese name in Sunray USB storage?
hi, All
I installed Sunray4u3 on Solaris0805. the application server is win2003EE.
I accessed usb storage from win2003, but I can only see files with English name , and could not see files with chinese name. Why? who can help?
best regards
xiong weiYou might want to make sure your credit card is listed in the billing information associated with your Apple ID (see http://support.apple.com/kb/ht1918).
Also, to change the From name that appears when you address emails on and iOS device, go to Settings>Mail,Contacts,Calendars...tap your iCloud email account, tap you iCloud account at the top, tap Mail at the bottom, then enter the name you want to use in the Name field at the top.
To change the From name on your Mac Mail, go to icloud.com, sign into your account, open Mail, click the gear shaped icon on the bottom left and choose Preferences, go to the Accounts tab and enter the name you want to use in the Full Name field and click Done. Then quit Mail on your Mac and re-open it. Your new From name should now appear in the drop-down list when you compose a new email. -
Display Files with API in web-browser
I'm trying to display display files (not reports).
The download currently completes, but the file is blank.
I am getting the file as an
IInfoObject
by:
IInfoObject obj = TraversalLogic.getInstance().getInfoObject(iStore, Integer.parseInt(objIdStr), "SI_PROGID, SI_FILES");
That being: com.crystaldecisions.client.logic.TraversalLogic
Then trying to print it out with com.crystaldecisions.ePortfolio.plugin.crystalenterprise.content.ContentUtil by
ContentUtil.displayContent(request, response, obj);
It compiles, it runs, but then the output document is blank. The user can see the objects in infoview. What am I missing here?After abandoning ContextUtil and casting these as IContent objects and trying to use: getContent on them, I get the error starting:
The exception originally thrown was: Server Input% not found or server may be down at com.crystaldecisions.sdk.occa.infostore.internal.g.a(Unknown Source)
This lead to the following solution on page 89 of http://help.sap.com/businessobject/product_guides/crs2008V1/en/crs_08_v1_releasenotes_en.pdf:
Solution:
Users attempting to access a BusinessObjects Enterprise XI 3.0 system
using BusinessObjects XI R2 SDK applications may receive the following
system message: "Err: "Server Input% not found or server may be down".
This is caused by a change to the formatting of File Repository Server (FRS)
names between the two versions. To resolve this issue, go to the Central
Configuration Manager and rename your Input FRS to Input.<host
name>.fileserver and Output FRS to Output.<hostname>.fileserver.
Making this change resolved the problem. -
Web.Show_Document does not work with long running reports
I am using Web.Show_Document() to call reports from Forms. Everything works fine for smaller reports. However for long running reports I do not get the output instead get the page "This page cannot be displayed.". On checking the job status on the report server I find that report is still running and completes after some time but by that time my http request has already timed out. What configuration do I have to change to make my long running reports work.
ThanksSo, looks like this is an IE issue. I need to add the form server site to my list of Trusted Sites. Once I did that, everything started to work fine. Thought I'd share in case anyone is really interested.....
-
Hi ,
Is it possible to call .htm files saved on disk - let's say c:\my_htmFiles on AppServer/DevSuiteServer using the web.show_document form's built-in...????
I have tried the following:
web.show_document('c:\my_htmfiles\first.htm','_blank') and
web.show_document('file://c:\my_htmfiles\first.htm','_blank')
but whereas in the web browser's file->open both of them work.... in web.show_document do not....
Is it possible to do it....?????
Note: I use Dev10g
Thanks....
SimI 'll try it of course.... but is it possible to define multiple directories down this virtual directory.....????
Assuming that there is the following dir structure:
C:\dev10gr2/tools/web/html
|
|--------------------------------------------/app1
|---------------/subdir1
|---------------/subdir2
|--------------------------------------------/app2
|--------------------------------------------/app3Is it possible to define multiple dirs ....????
Is there any doc which describes it with examples.....?????
Thanks.......
Sim -
Web.show_document() to display report in cache?
AS & DS 10.1.2.0.2.
I try to use run_report_object to generate report in Forms.
Report Destination Type: CACHE
report status 'FINISHED'
I checked cache <o-h>\reports\cache, the report is there. But nothing is show on screen.
Do I HAVE TO use web.show_document('url') to display report in cache?
If yes, what url I should use? If no (hope so), what I should do to bring the report to browser?
Thanks.Do I HAVE TO use web.show_document('url') to display report in cache?Yes. See examples in http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
-
Serving up files with Russian chars in the file name
Anyone know how to get CF 8 to serve up CFM files with
Russian characters in the file name? I can get IIS to server up
.html files but .cfm files turn in to ?????????.cfm files.
For example, this:
новостииобновления.cfm
becomes this ??????????????.cfm and throws a CF error (File Not
Found) when clicking on the link. The strange thing is I can see
the Russian characters in the status bar when I mouse over the link
but CF can't handle it. And IIS will serve up the file and replace
all the chars with their URL entity equivalent.
Any suggestions on how to fix?Open the Script Editor or AppleScript Editor in one of the subfolders of Applications and run the following:
tell application "Finder" to quit
if (do shell script "defaults read com.apple.finder AppleShowAllFiles") is "1" then
do shell script "defaults write com.apple.finder AppleShowAllFiles 0"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles 1"
end if
delay 2
tell application "Finder" to run
If you change your mind later, run the script again.
(93787) -
Firefox 3 cannot download files with white space in the filename
When opening attachments in e-mail Firefox is unable to handle files with white space in the name. This is not the same as the white space file name truncation problem documented on this site (where file names with white space are truncated on saving.) The issue is that the browser will prompt to allow the file to be saved, but it will not prompt to open the file as an option. If I rename the file to remove white space then I do receive the "Open with..." dialog box. I verified that Firefox 2 did not have this problem and I can open attachments with white space in the file names just fine using that version of the browser (2.0.0.20).
== This happened ==
Every time Firefox opened
== Upgraded to version 3When a user clicks on an attachment with spaces, the filename is truncated to the first whitespace. While IE, Chrome & Safari handle this, Firefox refuses to accept mime headers with unquoted filename parameters. According to Firefox's bugzilla/knowledgebase, Firefox's behavior is the correct behavior and it's a problem with most webservers or web applications. This problem can be easily corrected by surrounding the filename parameter with double quotes.
Eg.
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\""); -
How to save for web AND overwrite original files with Action?
Hello,
I want to compress a batch of images with "save for web" using a Photoshop Action, and I also want to preserve my folder structure and overwrite source files. The structure is important because it's complex and needs to be structured this way.
The Problem:
When I choose "save for web", I must define a destination. What happens is all optimized files from within the structure are saved in a single location.
Here's an example of the folder structure
Folder A
- Subfolder A1
- Subfolder A2
Folder B
- Subfolder B1
- Subfolder B2
-Subfolder B2.2
Folder C
-Subfolder C1
Summary
Is it possible for me to use a Photoshop Action with "save for web", and overwrite my files without moving them from the structure?No need to re-invent the wheel.
Just learn how to use the Image Processor, Image Processor Pro, or Dr. Brown's Services 1-2-3 in Photoshop and/or Bridge. -
Help! Cannot open files with certain applications
I updated to OS Tiger from OSX some weeks ago. Before, I could run a program that labels files in a given folder with names given in an Excel file (csv format). This "csv sorter" usually asks for the csv file once I put in the folder with the files that should be labeled. In the dialog window that opened I could just go through my harddrive to my csv file and choose it. Now the csv files always appear in pale grey and I cannot click on them. Has anybody an idea why certain programs should not recognize certain filetypes any more in OS Tiger? It seems like I cannot access any file with the csv sorter any more, no matter which file type. Thanks for your help!
found this on another websites forum .... it worked
I figured it out. Thanks everyone!
I had to turn on my wireless mouse... And even though I wasn't using my wireless mouse and just the trackpad...I had to turn on my wireless mouse then adjust those settings...Had to turn down the speed. Then Once I shut the mouse off and started to use the trackpad again it works perfectly.
I'm not sure why the mouse settings would change the trackpad settings but it did. -
Flat file with chinese characters
Hi all,
I am working on a solution to map a file with this structure (not xml):
//.comment 1
0~keyh2..hn~
0~it1it2..itn~key
0~it1it2..itn~key
//.comment 2
0~keyh2..hn~
0~it1it2..itn~key
0~it1it2..itn~key
0~it1it2..itn~key
This is my conversion setup
recordser.structure = comment,1,header,1,item,*
recordset.sequence = variable
keyFieldName = key
comment.fieldSeparator = .
comment.fieldStructure = key.comment
comment.keyFieldValue = //
header.fieldSeparator = ~~
header.beginSeparator = 0~~
header.endSeparator = ~~
header.fieldStructure = 0~keyh2..hn~
header.keyFieldValue = 0
item.fieldSeparator = ~~
item.beginSeparator = 0~~
item.fieldStructure = 0~it1it2..itn~key
item.keyFieldValue = 1
The problem now is that this file come from Chinese system and it is provide with chinese letters (looks like 2 bytes per letter). When I provide character encoding as ISO-2022 then adapter shows exception:
java.io.UnsupportedEncodingException
when I try to process it without passing any encoding then the exception is:
more elements in file csv structure than field names specified
Is there anyone who can help me with these?
br
DawidHi,
I think it is something wrong with the File content conversion parameters parameters.
You can avoid comment 1 and comment 2 by using the parameter Document offset.Follow this link for that:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm</a>.
I think you didn't specify the field names in the File Content Conversion parameters.
Follow these two weblogs for the File Content Conversion parameters:
<a href="/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30:///people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
<a href="/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter">/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter</a>
Hope it helps.
Regards,
JE -
I cannot open files by double clicking ... have looked at forums and no solution yet !!! Control click is the only way i can open files
"If you go to System Preferences > Accessibility > Mouse and Trackpad - You can set the speed of the double click to be much slower. Hope this helps someone else with a similar problem. " this solution did not work it just made my cursor move at a snails pace.
Thanks for any help forthcoming !!!found this on another websites forum .... it worked
I figured it out. Thanks everyone!
I had to turn on my wireless mouse... And even though I wasn't using my wireless mouse and just the trackpad...I had to turn on my wireless mouse then adjust those settings...Had to turn down the speed. Then Once I shut the mouse off and started to use the trackpad again it works perfectly.
I'm not sure why the mouse settings would change the trackpad settings but it did.
Maybe you are looking for
-
Unable to preview or edit clips on a Mac
Hello, I've searched these forums for hours and wasn't able to find a specific resolution for this problem on a Mac. I am trying to edit a 1 1/2 hour performance (school talent show) for export to DVD. I was able to start editing with no issues. Now
-
For the last few days I have not been allowed to watch anything that may have a video. It says I need an update version of Adobe and that I may need to turn off my antivirus. Not sure how to do this.
-
Can I pair two iPads using Bluetooth?
I have an ipad2 and an iPad and would like to connect the two via Bluetooth for the purpose of playing games. No matter what I do the two units will not find each other, even though each says it is discoverable and searching and within a meter of ea
-
Question: Acquired new iphone last week. All data was backed up with icloud on old phone and all was restored OK. Today, tried to download pics to my Mac and itunes asked for phone update---which resulted in an old incorrect "@me" id being used. Now
-
Cannot transfer videos taken from my Canon camera(MOV files) to the iPad 4. They have previous with no problems at all. Is this an update issue? I tried to sync them over using iTunes last night but it says that they cannot be played on the device. B