Problem in writing Hindi Font in properties file at run time.!
hi,
We are using Language translator for our project.
We are able to convert the language in hindi and chinese language.
Im also creating properties file respective to each page in hindi,english and chinese language.
At run time while CREATING properties file shows the english font appropriate but while
in hindi it shows problem at run time .
after WRITING at run time the hindi properties file contains lots on question mark(????????????) intead of hindi font words.
does any advise me the solution to this problem.?
Thankx in advance.!
Johnita
Hi suraya,
Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
http://forums.asp.net/. It is appropriate and more experts will assist you.
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.
Similar Messages
-
Problem while writing to fixed length flat file from xml
Hi,
I have a problem in writing data into a flat file of fixed length...
My input is a xml file and i want the output as a flat file. I am successful in converting the xml into flat file... But the main problem is, i am unable to insert spaces in between my fields in the flat file.
The data in the flat file comes without spaces... Any suggestions on writing the schema...
Regards
Surya.Have a look at this doc
http://otndnld.oracle.co.jp/document/products/as10g/101310/doc_cd/integrate.1013/b28994/nfb.htm#BGBBAJFD
your element should be something like this, it pads with a space using the paddedBy expression
<xsd:element name="C1" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4" nxsd:paddedBy=" " nxsd:padStyle="tail" />if having trouble post what you want the file to look like, and the xsd you are using.
cheers
James -
Urgent. How may i update a properties file in execution time?
Urgent, please. How may i update a properties file in execution time? I need to update the file by means of a web page and i need the changes be reflected immediately.
ThanksNote the update must be made in memory. But i don�t know how.
-
How to get info from a .class file at run time? thanks for help
I need to get methods and properties (variables) from a .class file at run time.
as u know, javap.exe can do that in an independent way. but i need to get info at run time once the .class or packeges have been changed, javap is not suitable in the case.
i try to read data directly from .class file but it's hard to know the file format.
e.g. a class looks like (java file):
class MyClass extends Frame
int i0;
String s0;
public String getName()
if the file is compiled to .class file, how to get properties (variables: i0,s0) and methods String getName() from the .class file by an applicaton at run time?
Doclet is not suitable for speed reason, it is too slow to get right info in right format.
Thanks for any help, please write a little bit more in detail if you know.Use the Java Reflection API. Have a look at the Reflection section of the Java Tutorial located at http://java.sun.com/docs/books/tutorial/reflect/index.html
-
Modifying property file at run time
Hi all..
I have been using properties file for handling few configurations in my project.
whenever i need a change in the file, i had to change it in corresponding file, create a jar file and then introspect it into project and then publish the project.
Is there any other way of achieving it.... can we modify the property file at run time just like we do for JSP pages...
Or any other better way of doing this.. pls suggest..
(am using 10g OBPM)
Have a nice time...
Regds,
ViswanathSharma,
write a java class that reads a property file from the external path. make the jar file non-versionable in case you need to update that later. if you are on J2ee container all you need to do it drop the file @ domain root and u shd be good to go.
sample code I am doing this for log4j.properties and application propertied.
public class BPMLoggerUtil {
// Initializing the default Logger //
private static Logger logger = null;
private static final String DEFAULT_PATH = "resources/log4j.properties";
private static HashMap map = new HashMap();
* This is the init method
* @param propertyPath
public static void init(String propertyPath){
try {
if((logger = (Logger) map.get(propertyPath)) == null){
Properties properties = new Properties();
properties.load(LoggerUtil.class.getClassLoader().getResourceAsStream(propertyPath));
PropertyConfigurator.configure(properties);
logger = Logger.getLogger(PropertiesHelper.getProperty("resources.test", "AppName"));
map.put(propertyPath, logger);
} catch(Exception ex) {
ex.printStackTrace();
} -
How create bath file in run time in java
Hi all
i run one bath file by using process class but i create bath file in run time in java .please help me with code.Dynamically Writing a batch file in Java is exactly the same as writing to a simple text file.... you just give it the file extension ".bat".
If you can't write to a simple text file yet, you should probably buy a Java book and start working through it.
regards,
Owen -
Convert standard video files in to flv file at run time
Hello All
How can we convert standard video files in to flv file at run
time like
you tube and
Google Video is there any
script or tool to do this. This is urgent.
I have one project in this project client requiring function
like whatever standard video file he upload, it will be play in
.flv formate
Any help is appreciated
Naved AnsariI think you need the Macromedia Flash Media Server to be able
to do what you are asking. Flash 8 can with a Flash Video Encoder
but it does not do it on the fly. There maybe other 3rd party
servers that you can sign-up that allow you do this but if you are
looking for your own solution you will need the FMS 2.0.
Tim -
Opening Another Flash File during Run Time
I know, this is too easy. How do I open a Flash.exe file
during run time? I know the code below is wrong but some insert the
correction?
open_btn.onRelease = function () {
play("C:\Documents and Settings\GameOfficeFlow.exe");}
Forever in your debt,
Mikeplay() is a timeline command.
I don't think you can have Flash load/play an exe file, but
wait awhile and see if someone else knows better on that one. You
can have it load/play an swf version of a Flash file though. -
Time Stamp problem while writing data into the excel file
Hii, All
I am taking the data from the DAQ card of the TOPSCCC with the 8 ms of scanrate for each channel and there are total 16 no of Analog channels in the Card, now i am acquiring the data from the card, time stamping it and writing it into the excel file, which is tab delimited, now the problem is, the data which are in the excel file have the same timestamp for 4 to 5 continuous records, instead we want each data with the different and continuous time stamp with same difference of time stamp between two records, mean if it is difference of 8 ms then it should be the 8 ms for all, but here it is taking the differnce of 16 ms for two samples and giving same time stamp for four to five records and that shouldn't happen, here i am attaching my vi, drivers for the cards and Excel file with the data, can you please give me any suggestion how to do it?
Please help me i require this suggestion as early as possible, i am requiring it urgently.
Thanks in Advance,
Nishant
Attachments:
2026vi.llb 319 KB
2026_ScanMultAD_Demo_time.vi 80 KB
Data.xls 357 KBHello Nishant,
that's what I meant:
Message Edited by GerdW on 05-16-2006 10:32 AM
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
timestamp-array.png 2 KB -
How can load properties file for one time and use in entire application
Hi folks,
I dont want to read properties file every time , and want to get property value in any servelet or jsp page.(means i want to read only property file only for once and want to get value in any where ) , how to do this.
Message was edited by:
RajeshwarReddyTmeans we have to read file every time Know but i dont
want to be happen that ??? No you don't . You read the file once. You store it in the hashmap. Then you hand that hashmap to whatever class needing the data.
getProperties() returns the hashmap, doesn't read the file.
Maybe I should have called the method getMap or something.
Message was edited by:
karma-9 -
In Solution Explorer we can set the Custom Tool property for a t4 Template file in the Properties window. But can anybody help me doing the same at run time?
I want to assign the value TextTemplatingFileGenerator programmatically to the Custom Tool Property.
Thanks in advance...Hi suraya,
Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
http://forums.asp.net/. It is appropriate and more experts will assist you.
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. -
Missing vi.lib files in Run-Time LabVIEW 2012
Hi
I've got a problem executing VI's under RT in LabVIEW 2012.
Our system consist of multiple independent modules which are opened and run from a Manager VI. VI paths to the modules are read from an .ini file by the Manager VI.
We have build a single executable (RT Launcher) that takes the path of the Manager VI as argument (Attachment : RT Launcher.png).
The RT Launcher is placed in the ..\National Instruments\LabVIEW 2012 folder as the LabVIEW.exe.
The RT Launcher is called from the CLI.
"C:\Program Files\National Instruments\LabVIEW 2012\RT Launcher.exe" "C:\Workspace\Labview\Manager.vi"
This will run the Manager.vi in the RunTime Environment and the Manager.vi will open the .ini file and execute the Module VI's one by one.
By calling the RT Launcher.exe from the same folder as the LabVIEW.exe, the search paths should be the same.
The system worked fine in LabVIEW 2010.
The Manager VI is opened with broken arrow and the errors indicate that vi.lib sub VIs are missing (attachment : Manager VI errors.png)
I know there are issues regarding object cache and separated compiled code from LV2010 -> LV2011 -> LV2012, but simply can't figure out how to come around this problem.
Can anyone explain the difference and how to solve the problem ?
Thanks
Regards Kahr
Certified LabVIEW Architect
CIM A/S
Solved!
Go to Solution.
Attachments:
RT Launcher.png 68 KB
Manager VI errors.png 35 KBHi Kahr.
It sounds like you are making some dynamic calls to VI's, eg. by using 'Open VI Reference'. My answer is based on that assumption.
You are absolutely right. In LabVIEW2010 we introduced a function called 'Separating Compiled Code from VI'. At that time none of the VIs from VI.lib had that option enabled. In LabVIEW2011, many VI's in VI.lib have, by default, a separation of compiled code and VI. This option cannot be changed (greyed out) for these VI's as well. This feature was introduced in order to simplify source code control.
Separating Compiled Code from VIs and Other File Types
The drawback is, that it is no longer possible to call VI's dynamically from an application (executable), when this option in enabled, since the compiled code no longer exists. The method of calling a VI dynamically from an application has been (and still is) used to make some kind of a plug-and-play architecture, meaning we have one EXE-file that only gets distributed once and a set of subVI's that gets redistributed according to new versions (new features added to the subVI), meaning we can make changes in the subVI without having to redistribute the EXE-file.
With the release of LabVIEW2011 and LabVIEW2012 we can no longer distribute VI's that uses functions from vi.lib, this also include DAQmx calls even though the DAQmx driver is installed.
The simple explaining is, that it has never been intended that VI's got distributed. Eg, when Microsoft is making a new software update for Windows7, they don't send out the source code to all the users.
The solution is therefore to wrap up the source code into 'something' that includes all the compiled files. In LabVIEW we do that in a couple of different ways.
1) Include the VI's in the EXE-file.
When building the application, we have the option to include files, that normally is not included in builds. If we call a SubVI dynamically this will not automatically be included! However, the drawback of this method is, that if you need to change something in one of your SubVI's, you would need to build and distribute the entire application. Thereby, we are not making use of the plug-and-play architecture that we originally wanted. However, this method will fix the error.
Error 1003 When Using VI Server in a LabVIEW Application
2) Now, if we still want the plug-and-play architecture in LabVIEW2011+2012 (and this will properly be the same for the next many released of LabVIEW), this can still easily be achieved by making a Source Distribution. When we make a Source Distribution, we can include the VI's from VI.lib and thereby the compiled code. When using this method, two important things should be remembered:
a) Make the files into a LLB file. This will pack all the VI's into one single file, that is easy to distribute.
Go to Destinations ==> Destination Type ==> LLB.
b) Make sure not to 'Exclude files from vi.lib', as this method will then simply not work.
Go to Additional Exclusions ==> Remove checker mark in 'Exclude files from vi.lib'.
How Can I Call a VI Dynamically from an Executable Without Including Those VIs in the Build?
I have made a small example to demonstrate this:
Example: Using vi.lib
This example has two mainVIs and two EXE-applications. Build the two EXE-files, but do NOT build the source distribution yet.
1) Main(IncludeSubInExE). This version has included the subVI in the build distribution for the EXE-file. When running this EXE everything works fine, even when calling the subVI dynamically. However, since the subVI is build into the exe, we would have to redistribute the exe for every new version of the subVI. This breaks the hole idea.
2) Main. The subVI is no longer included in the build. When running and trying to call the subVI, you will get this error (on both your developer and run-time machine):
Now, build the Source Distribution and run this EXE again. The exe is running perfectly with no errors.
I hope this answers your question.
Best Regards
Alex E. Petersen
Certified LabVIEW Developer (CLD)
Application Engineer
Image House PantoInspect
Attachments:
Using vi.lib.zip 83 KB -
Can i change my contain in file at run time
hello everybody,
i am beginner and i am trying to write the online test,
i display users to login and then display first question on question.html,
now my question is can i change question and send next question at run time on same question.html
please reply me,
waiting for answerhello,
but how i open that html files and change the contain within control (say textbox) as i change the question in text box.
please reply me -
Error when importing static files in run-time installation
Hello all,
I have a development environment running 3.2 and also a run-time test environment running 3.2. I'm trying to import an export of static files from the development environment into the test environment, and we're getting the following:
SQL> @static_file.sql
Set Credentials...
Check Compatibility...
API Last Extended:20090112
Your Current Version:20090112
This import is compatible with version: 20090112
COMPATIBLE (You should be able to run this import without issues.)
Set Application ID...
...static file repository
declare
ERROR at line 1:
ORA-00001: unique constraint (APEX_030200.WWV_FLOW_HTML_REPO_IDX1) violated
ORA-06512: at "APEX_030200.WWV_FLOW_HTML_API_PRIVATE", line 84
ORA-06512: at "APEX_030200.WWV_FLOW_HTML_API", line 45
ORA-06512: at line 6
We've exported and imported these same static files in the past with no issues, and we also exported and imported two applications and an image export without issues.
Any idea what is causing this?
Thanks!
JohnUpdate:
I had two static files in my export - one was assigned to a specific application and one wasn't. When I ran into the issue importing, I had elected to export "all static files". I just tried it again, but exported and imported each of them individually, and it worked fine so I'm back in business.
But perhaps there is an issue when exporting all files, when they aren't all assigned the same way? Maybe something to be looked into...
John -
Problems while writing xml doc to a file
Hi all , in my project (of distributed xml databases) i need to write the xml files from the main server to the clients.
These xml files i had formed by fragmenting one xml doc and i did the fragmentation using ....
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer();
transformer.transform(new DOMSource(root),
new StreamResult(new FileOutputStream(outputFile)));
Now the problem is that on the client where these fragments reside..i m not able to do the indexing of the document properly ie...
some extra text nodes with no values are coming in the index...
i dont know how to deal wid the extra nodes that i m getting after parsing the file and craeting an index for the same..
may be its coz of the transformer func i m using....don know(???)
Note : i m fragmenting the xml files into text files using the above function and then sending thm to the client via sockets.
Also,after fragmenting i am getting sumthng like
<?xml version="1.0" encoding="UTF-8"?>
in all the files..is this a source of any problem....
plz reply soon....You have not described how you "index" the files and what you mean by that.
Are you processing them with SAX or DOM, or one of the variations of those means?
Is there a chance that the "extra" nodes are simply text nodes with newlines ("\n")? There are usually a lot of extra text nodes in a file each containing only one newline.
If you are using SAX, there is no requirement for the parser to collect all of the text inside an element into a single block before calling the characters method. You may get several calls to characters between the start of an element and the end. If you change parsers, you may even get a different number of calls, but the character data will always be the same.
Dave Patterson
As to the <?xml version="1.0" encoding="UTF-8"?> line, that is perfectly fine. It means that your file thinks it is valid XML. Whether or not it REALLY is valid depends on a validation of the file.
Maybe you are looking for
-
Problem with starting Crystal Report document from SAP Gui
Dear all, in Crystal Reports I created my first report (based on a BW query), which is executed successfully, when I run it directly from CR or from Infoview. The report is stored directly in BW and has been published successfulyl to BOE. If I try to
-
EDIT: Sorry; original search terms didn't give me my answer. I think I found a solution though. Will update whether it works out. My wife and I each have our own MBPs, and we each have our own Apple IDs that pre-existed our marriage. Apple doesn't ma
-
Hi folks, I have a requirement to display table output in an ALV grid, making 1 column editable. I have done this by setting the EDIT = 'X' flag in the field catalog for the field in question. Yet, when the field value is modified and the users try
-
Active Directory System Time is decreasing automatically
Hi, I have 4 DC. 3 DC in My main office, one is primary and rest of the DC is Additional and other one is remote location, that also additional domain. all are synch together right now I am getting Time issue. when i have change the correct time in m
-
Quitter iPhoto (Leave iPhoto)
I cannot leave iPhoto : I have followed all the indications but it is impossible to leave I-Photo and to switch off my computer. What can I do for this problem ? Thank you very much for your help.