English 中文(简体)
我如何知道X12文件中使用了何种特性?
原标题:How do I know what character set is used in x12 document?
  • 时间:2011-11-21 08:05:32
  •  标签:
  • edi
  • x12

I am implementing an EDI-x12 header parser (only to parse "ISA" segment) I notice that there are several character sets can be used.

我的问题是,我如何知道,什么是用哪一种电文来传递接听,以便我知道如何解释这一信息?

最佳回答

actually there is no such thing as a character set in x12. this is up to the partners/interchange agreement. but as X12 is mainly used in USA, it is us-ascii (almost always). (but .....some companies send x12 as EBCEDIC ;-)))

问题回答

如果你只做ANSI X12,那么《国际审计准则》部分就应该很容易地加以划分,因为它是固定的长度。

Position 4 will give you the element delimiter (field delimiter).
Position 106 will give you the record terminator.
Position 105 will give you the subelement delimiter

You probably won t have much use for the subelement delimiter, depending on the document type. Once you figure out what your field delimiters are and then the record delimiter, it should be a snap.

(Standard disapper: 有许多重要的工具,如数据翻译,使得这一工作比一名方案管理员重新发明轮机更简单。) 其中一些工具甚至开放源头和自由。 ......

希望这一帮助。





相关问题
Effective way of String splitting

I have a completed string like this N:Pay in Cash++RGI:40++R:200++T:Purchase++IP:N++IS:N++PD:PC++UCP:598.80++UPP:0.00++TCP:598.80++TPP:0.00++QE:1++QS:1++CPC:USD++PPC:Points++D:Y++E:Y++IFE:Y++AD:Y++...

How do I parse EDIFACT in Java? [closed]

Parsing EDIFACT can be a daunting undertaking. How can I correctly create the syntactically and semantically correct tree from an EDIFACT file?

EDI File to pipe delimited flat file

I m looking for any helpful links or advice on translating an incoming EDI 940 (X12) to a (|) Pipe delimited flat file in c#.net

EDIEL library for Java/C#

This is a long-shot but does anyone know of a library in Java/C# for handling the EDIEL specification (this is the EDI spec with extensions for electricity, used by scandanavian countries and a few ...

Reading EDI Formatted Files

I m new to EDI, and I have a question. I have read that you can get most of what you need about an EDI format by looking at the last 3 characters of the ISA line. This is fine if every EDI used line ...

EDI Flat File parsing with C#?

Initially I was thinking to use SSIS to parse an EDI file, however I ve seen a few manual EDI parsers (field mapping), and would like to use automate this functionality in C#. Example EDI File:

EDIFACT macro (readable message structure)

I´m working within the EDI area and would like some help with a EDIFACT macro to make the EDIFACT files more readable. The message looks like this: data data data data I would like to have the ...

热门标签