<?xml version="1.0" encoding="utf-8"?>
<Session ID="/baanerp/tt/adv/ttadv4106m000" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Parameters Multi Language Support (ttadv4106m000)</Title>
	</Header>
	<HelpTopic xml:lang="en"><AimSection><List><ListIntro>
                                    Use this session to
                                 </ListIntro>
				<ListItem>adjust the database factor (Multibyte Factor) for multibyte string fields. Refer to <Link href="#multibyte" role="internal">Multibyte</Link> for details.</ListItem>
				<ListItem>display the Unicode indicator. Refer to <Link href="#unicode" role="internal">Unicode</Link> for details.</ListItem>
				<ListItem>display an additional factor for zero width characters.</ListItem>
				<ListItem>enable support for Multilanguage Fields.</ListItem>
			</List>
		</AimSection>
		<Note><SectionTitle>
                                 Note 1</SectionTitle>
			<Paragraph class="Default">You cannot use this session to switch from Native (multibyte/singlebyte) mode to Unicode mode. For details on the conversion to Unicode, refer to the <DocRef>Infor Enterprise Server 8.4 - Conversion Guide Database to Unicode (U8887 US)</DocRef>.</Paragraph>
		</Note>
		<Note><SectionTitle>
                                 Note 2</SectionTitle>
			<Paragraph class="Default">Before storing the settings in the Multibyte Parameters (ttadv406) table, the session corrects the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef> with the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_zwcf" role="manual">Factor zero width characters</GUIRef>. Refer to the field help for details.</Paragraph>
		</Note>
		<GeneralSection ID="multibyte"><SectionTitle>Multibyte</SectionTitle>
			<Paragraph class="Default">If ERP LN is installed in Native (multibyte/singlebyte) mode, you can specify the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef>.</Paragraph>
			<Important><SectionTitle>
                                    Important!
                                 </SectionTitle>
				<List><ListIntro>Make sure that:</ListIntro>
					<ListItem>you are the only user on the system.</ListItem>
					<ListItem>no running database drivers are present on the system when you start the bshell.</ListItem>
					<ListItem>do not run any Infor ERP application before starting this session.</ListItem>
				</List>
				<Paragraph class="Default">After running this session, you must take following steps:</Paragraph>
				<List><ListItem>log off.</ListItem>
					<ListItem>stop the printer daemon.</ListItem>
					<ListItem>database drivers must be stopped</ListItem>
					<ListItem>run: bw.exe ttadv4206m000.</ListItem>
					<ListItem>start the printer daemon again.</ListItem>
				</List>
			</Important>
			<Paragraph class="Default">In the <GUIRef href="/baanerp/tt/adv/ttadv4120s000" role="session">Table Definitions (ttadv4120s000)</GUIRef> session you can define table definitions. A table can contain fields of the multibyte string type. Each table field has a certain length. For multibyte string fields, the length specifies the number of positions on which the characters can be placed.</Paragraph>
			<Paragraph class="Default">Suppose the multibyte factor is one. You defined a field of the multibyte string type, with a length of 30. This means that if you want to enter 30 characters, every character must be only one byte. If you enter only characters of two bytes you can enter only 15 characters.</Paragraph>
			<Paragraph class="Default">You can enlarge the size of the multibyte strings with the multibyte factor. If you want to enter 30 characters of two bytes in the field of the previous situation, you must enlarge the multibyte factor to two. If you enter a character of one byte in that situation, this character will use two bytes. So, in this situation you can enter 30 characters of one byte or 30 characters of two bytes.</Paragraph>
			<Paragraph class="Default">If you enter a character of four bytes in the previous situation, it takes the place of two characters. So you shorten the length of the field. If in that situation you enter only characters of four bytes, you can enter a maximum of 15 characters.</Paragraph>
			<Paragraph class="Default">See the following examples:</Paragraph>
			<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TD rowspan="1" colspan="1">Multibyte Factor:</TD>
						<TD rowspan="1" colspan="1">1</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">field length:</TD>
						<TD rowspan="1" colspan="1">20</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">You can enter:</TD>
						<TD rowspan="1" colspan="1">20 single byte characters</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">10 characters of 2 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">6 characters of 3 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">5 characters of 4 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">you can also enter:</TD>
						<TD rowspan="1" colspan="1">10 single byte characters + 5 characters of 2 bytes (total 15 characters)</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">Multibyte Factor:</TD>
						<TD rowspan="1" colspan="1">2</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">field length:</TD>
						<TD rowspan="1" colspan="1">30</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">You can enter:</TD>
						<TD rowspan="1" colspan="1">30 single byte characters</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">30 characters of 2 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">20 characters of 3 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1"></TD>
						<TD rowspan="1" colspan="1">15 characters of 4 bytes</TD>
					</TR>
					<TR><TD rowspan="1" colspan="1">you can also enter:</TD>
						<TD rowspan="1" colspan="1">15 characters of 2 bytes + 10 characters of 3 bytes (total 25 characters)</TD>
					</TR>
				</TBODY>
			</TABLE>
			<Paragraph class="Default">Looking at the above mentioned examples you can say:</Paragraph>
			<List><ListItem>The space which will be reserved for characters on a multibyte field is: <Code>Multibyte Factor * length</Code>
				</ListItem>
				<ListItem>You cannot enter more characters than specified in the length of the field. So, if the Multibyte Factor is 2 and the length of the field is 30, you cannot enter 60 single byte characters.</ListItem>
			</List>
			<Paragraph class="Default">Bear in mind that when you enlarge the database factor the table takes more space. If you use only single byte characters, and you have specified a database factor of four and the length of a field is, for example, 30, the space that will be used is 120 bytes for 30 characters. In that situation you can better use a database factor of one. Then the same string will take only 30 bytes.</Paragraph>
		</GeneralSection>
		<GeneralSection ID="unicode"><SectionTitle>Unicode</SectionTitle>
			<Paragraph class="Default">In order to support all languages available for ERP LN in one environment, you must install ERP LN in Unicode mode. Unicode is the standard for multi-language support. It provides a unique code for each character regardless the language.</Paragraph>
			<Paragraph class="Default">If ERP LN is installed in Unicode mode, the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef> field is read-only and has a fixed value of 4.</Paragraph>
		</GeneralSection>
		<RelatedTopics><SectionTitle>
                                 Related topics
                              </SectionTitle>
			<RelTopic><Link href="/baanerp/basictasks/000001" role="manual">To use an overview session</Link>
			</RelTopic>
			<RelTopic><Link href="/baanerp/basictasks/000035" role="manual">To maintain records in an overview session</Link>
			</RelTopic>
		</RelatedTopics>
	</HelpTopic>
	<Fields><FieldHelp ID="ttadv406.mbyt"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Multi Byte</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, the database factor for multibyte string fields is active.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv406.za_unic"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Unicode</Title>
			</Header>
			<FuncDesc>Indicates whether ERP LN is installed in Unicode mode.</FuncDesc>
		</FieldHelp>
		<FieldHelp ID="ttadv406.za_fact"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Multibyte Factor</Title>
			</Header>
			<FuncDesc>The Multibyte Factor is used, during the conversion to runtime of the domains, to determine the internal length (CLEN) of a domain in case of multibyte strings.</FuncDesc>
			<SimpleSection><Paragraph class="Default">For Unicode enabled installations the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef> has a fixed value of 4. Before storing the settings in the Multibyte Parameters (ttadv406) table, the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef> is multiplied by the <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_zwcf" role="manual">Factor zero width characters</GUIRef> incremented by one:</Paragraph>
				<Formula space-and-orientation="indented-estimated"><Paragraph class="Default"><GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual" Update="Yes">Multibyte Factor</GUIRef> * (<GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_zwcf" role="manual" Update="Yes">Factor zero width characters</GUIRef> + 1)</Paragraph>
				</Formula>
				<Paragraph class="Default">Example: with a <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_fact" role="manual">Multibyte Factor</GUIRef> of 4 for Unicode enabled installations and a <GUIRef href="/baanerp/tt/adv/ttadv4106m000#ttadv406.za_zwcf" role="manual">Factor zero width characters</GUIRef> of 0, the factor with which a multi byte string will be multiplied is: 4 * (0 + 1) = 4.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv406.za_zwcf"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Factor zero width characters</Title>
			</Header>
			<FuncDesc>This factor is used to determine the width on screen and on paper for zero width characters, such as Thai accents and other accents. It is used in Native (multibyte/singlebyte) mode and in Unicode mode as well.</FuncDesc>
			<SimpleSection><Paragraph class="Default">This field is always read-only and has a fixed value of 0.</Paragraph>
			</SimpleSection>
		</FieldHelp>
		<FieldHelp ID="ttadv406.mdls"><Header>
				<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">Multilanguage Fields Support</Title>
			</Header>
			<FuncDesc>
                                 If this check box is selected, ERP LN can store shared application data in multiple languages. Depending on the user’s software language, the application data can be displayed in the same language too. For details on the procedure to configure Multilanguage Fields Support, refer to <Link href="/baanerp/tt/onlinemanual/mle_multi_language_application_data" role="manual">Multilanguage Application Data</Link>.</FuncDesc>
			<SimpleSection><Paragraph class="Default">Note: To support multilanguage fields, ERP LN must be installed in Unicode mode.</Paragraph>
			</SimpleSection>
		</FieldHelp>
	</Fields>
</Session>
